Documentation
¶
Index ¶
- Constants
- func Execute(ctx context.Context, name string, params any, meta op.Meta, ...) (*op.CallToolResult, error)
- func HandleEdit(ctx context.Context, req *op.CallToolRequest, input editInput) (*op.CallToolResult, any, error)
- func HandleRead(ctx context.Context, req *op.CallToolRequest, input readInput) (*op.CallToolResult, any, error)
- func HandleShell(ctx context.Context, req *op.CallToolRequest, input shellInput) (*op.CallToolResult, any, error)
- func HandleWrite(ctx context.Context, req *op.CallToolRequest, input writeInput) (*op.CallToolResult, any, error)
- func IsBuiltinName(name string) bool
- func IsOSToolName(name string) bool
- func OSToolSpec(name string) (*op.ToolSpec, bool)
- func ShellToolDescription() string
- type NotifyFunc
Constants ¶
View Source
const ServerID = "__systool__"
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(ctx context.Context, name string, params any, meta op.Meta, notifier NotifyFunc) (*op.CallToolResult, error)
func HandleEdit ¶
func HandleEdit(ctx context.Context, req *op.CallToolRequest, input editInput) (*op.CallToolResult, any, error)
func HandleRead ¶
func HandleRead(ctx context.Context, req *op.CallToolRequest, input readInput) (*op.CallToolResult, any, error)
func HandleShell ¶
func HandleShell(ctx context.Context, req *op.CallToolRequest, input shellInput) (*op.CallToolResult, any, error)
func HandleWrite ¶
func HandleWrite(ctx context.Context, req *op.CallToolRequest, input writeInput) (*op.CallToolResult, any, error)
func IsBuiltinName ¶
func IsOSToolName ¶
func ShellToolDescription ¶
func ShellToolDescription() string
Types ¶
type NotifyFunc ¶
type NotifyFunc func(context.Context, *op.InfoNotificationParams)
Click to show internal directories.
Click to hide internal directories.