Documentation
¶
Overview ¶
Package tool implements a very small sample tool that can be registered with an MCP server for demonstration purposes (see tests in the parent example packages).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOutput ¶ added in v0.3.1
type TerminalCommand ¶
type TerminalTool ¶
type TerminalTool struct {
// contains filtered or unexported fields
}
func NewTool ¶
func NewTool(service *gosh.Service) *TerminalTool
func (*TerminalTool) Call ¶
func (t *TerminalTool) Call(ctx context.Context, input *TerminalCommand) (*schema.CallToolResult, *jsonrpc.Error)
Click to show internal directories.
Click to hide internal directories.