Skip to main content

Module tool

Module tool 

Source
Expand description

Tool system: trait, registry, result types, and context.

Modules§

bash
bash tool — executes shell commands.
edit
edit tool — exact string replacement in files.
find
find tool — searches for files matching a pattern.
grep
grep tool — searches file contents for a pattern.
load_skill
load_skill tool — loads a skill’s full content by name.
ls
ls tool — lists directory contents.
read
read tool — reads file contents with line numbers.
write
write tool — creates or overwrites files.

Structs§

ToolCallInfo
Information about a tool call, used for confirmation requests.
ToolContext
Runtime context passed to tools during execution.
ToolRegistry
Registry that manages all available tools.
ToolResult
Result returned to the LLM after tool execution.

Traits§

Tool
A tool that can be called by the LLM and executed by the Agent.

Functions§

resolve_path
Resolve a file path relative to the working directory.