tools

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SSHConnect

func SSHConnect(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHConnect returns a tool handler that connects to an SSH server.

func SSHConnectSchema

func SSHConnectSchema() *structpb.Struct

SSHConnectSchema returns the JSON Schema for the ssh_connect tool.

func SSHDisconnect

func SSHDisconnect(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHDisconnect returns a tool handler that disconnects an SSH session.

func SSHDisconnectSchema

func SSHDisconnectSchema() *structpb.Struct

SSHDisconnectSchema returns the JSON Schema for the ssh_disconnect tool.

func SSHDownload

func SSHDownload(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHDownload returns a tool handler that downloads a file from a remote server via SFTP.

func SSHDownloadSchema

func SSHDownloadSchema() *structpb.Struct

SSHDownloadSchema returns the JSON Schema for the ssh_download tool.

func SSHExec

func SSHExec(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHExec returns a tool handler that executes a command on a remote server.

func SSHExecSchema

func SSHExecSchema() *structpb.Struct

SSHExecSchema returns the JSON Schema for the ssh_exec tool.

func SSHInteractiveClose added in v1.0.5

func SSHInteractiveClose(iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHInteractiveClose returns a tool handler that closes an interactive SSH session.

func SSHInteractiveCloseSchema added in v1.0.5

func SSHInteractiveCloseSchema() *structpb.Struct

SSHInteractiveCloseSchema returns the JSON Schema for the ssh_interactive_close tool.

func SSHInteractiveOpen added in v1.0.5

func SSHInteractiveOpen(sshMgr *ssh.Manager, iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHInteractiveOpen returns a tool handler that opens an interactive SSH shell with PTY allocation on an existing SSH connection.

func SSHInteractiveOpenSchema added in v1.0.5

func SSHInteractiveOpenSchema() *structpb.Struct

SSHInteractiveOpenSchema returns the JSON Schema for the ssh_interactive_open tool.

func SSHInteractiveSend added in v1.0.5

func SSHInteractiveSend(iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHInteractiveSend returns a tool handler that writes input to an interactive SSH session's stdin.

func SSHInteractiveSendSchema added in v1.0.5

func SSHInteractiveSendSchema() *structpb.Struct

SSHInteractiveSendSchema returns the JSON Schema for the ssh_interactive_send tool.

func SSHInteractiveStream added in v1.0.5

func SSHInteractiveStream(iMgr *ssh.InteractiveManager) func(ctx context.Context, req *pluginv1.StreamStart, chunks chan<- []byte) error

SSHInteractiveStream returns a streaming tool handler that subscribes to an interactive SSH session's output and pushes each chunk through the streaming channel. The stream runs until the context is cancelled or the session closes.

func SSHInteractiveStreamSchema added in v1.0.5

func SSHInteractiveStreamSchema() *structpb.Struct

SSHInteractiveStreamSchema returns the JSON Schema for the ssh_interactive_stream streaming tool.

func SSHListRemote

func SSHListRemote(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHListRemote returns a tool handler that lists files on a remote server via SFTP.

func SSHListRemoteSchema

func SSHListRemoteSchema() *structpb.Struct

SSHListRemoteSchema returns the JSON Schema for the ssh_list_remote tool.

func SSHListSessions

func SSHListSessions(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHListSessions returns a tool handler that lists active SSH sessions.

func SSHListSessionsSchema

func SSHListSessionsSchema() *structpb.Struct

SSHListSessionsSchema returns the JSON Schema for the ssh_list_sessions tool.

func SSHUpload

func SSHUpload(mgr *ssh.Manager) func(ctx context.Context, req *pluginv1.ToolRequest) (*pluginv1.ToolResponse, error)

SSHUpload returns a tool handler that uploads a file to a remote server via SFTP.

func SSHUploadSchema

func SSHUploadSchema() *structpb.Struct

SSHUploadSchema returns the JSON Schema for the ssh_upload tool.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址