Skip to main content

Module tool_loader

Module tool_loader 

Source
Expand description

CommandTool — declarative JSON-defined tools executed as subprocesses.

Plugin tools are defined as JSON files specifying a command, optional args, timeout, and permission level. At runtime, arguments are piped as JSON to stdin; stdout JSON is the tool result.

Structs§

CommandTool
A Tool implementation backed by a subprocess command.
ToolSpec
Declarative JSON spec for a plugin tool (e.g. tools/my-tool.json).

Enums§

ToolPermission

Functions§

load_tool_spec
Load a tool spec from a JSON file.