()
| 14 | func init() { Default.Register(&BashTool{}) } |
| 15 | |
| 16 | func (BashTool) Definition() api.ToolDef { |
| 17 | return api.ToolDef{ |
| 18 | Name: "bash", |
| 19 | Description: "Run a shell command. Returns combined stdout and stderr.", |
| 20 | InputSchema: map[string]any{ |
| 21 | "command": map[string]any{ |
| 22 | "type": "string", |
| 23 | "description": "The shell command to execute.", |
| 24 | }, |
| 25 | }, |
| 26 | Required: []string{"command"}, |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func (BashTool) Execute(ctx context.Context, rawInput string) (string, bool) { |
| 31 | var in struct { |
nothing calls this directly
no outgoing calls
no test coverage detected