Skip to main content

Module tool

Module tool 

Source
Expand description

Tool system

Tools are the executable capabilities available to agents.

Re-exports§

pub use sandbox::PluginManifest;
pub use sandbox::PluginRegistry;
pub use sandbox::SigningKey;
pub use sandbox::hash_bytes;
pub use sandbox::hash_file;

Modules§

advanced_edit
Advanced Edit Tool with multiple replacement strategies (port of opencode edit.ts)
agent
Agent Tool - Spawn and communicate with sub-agents
avatar
Avatar Tool - AI digital human video generation via Duix Avatar.
bash
Bash tool: execute shell commands
batch
Batch Tool - Execute multiple tool calls in parallel.
codesearch
Code Search Tool - Search code in the workspace using ripgrep-style patterns.
confirm_edit
Confirm Edit Tool
confirm_multiedit
Confirm Multi-Edit Tool
edit
Edit tool: replace strings in files
file
File tools: read, write, list, glob
image
Image tool for loading and encoding images
invalid
Invalid tool: Handle invalid or unknown tool calls gracefully
lsp
LSP tool: Language Server Protocol operations
mcp_bridge
MCP Bridge Tool: Connect to and invoke tools from external MCP servers
memory
Memory tool: Persistent knowledge capture and retrieval
multiedit
Multi-Edit Tool
patch
Apply Patch Tool - Apply unified diff patches to files.
plan
Plan Tool - Enter/exit planning mode for multi-step reasoning.
podcast
Podcast Tool - Create and manage AI-generated podcasts via Qwen TTS.
prd
PRD Tool - Generate PRD JSON from requirements via Q&A
question
Question Tool - Ask the user a question and wait for response.
ralph
Ralph Tool - Autonomous PRD-driven agent loop
rlm
RLM tool: Recursive Language Model for large context analysis
sandbox
Plugin sandboxing and code-signing for tool execution.
search
Search tools: grep
skill
Skill tool: Load and invoke learned skill patterns
swarm_share
Swarm Share Tool - Publish and query shared results between sub-agents
task
Task Tool - Spawn sub-tasks for parallel or sequential execution.
todo
Todo Tool - Read and write todo items for task tracking.
undo
voice
Voice Tool - Text-to-speech, transcription, and voice cloning via Qwen TTS API.
webfetch
Web Fetch Tool - Fetches content from URLs and converts HTML to markdown/text/html.
websearch
Web Search Tool - Search the web using DuckDuckGo or configurable search API.
youtube
YouTube Tool - Publish podcast episodes and videos to YouTube.

Structs§

ToolRegistry
Registry of available tools
ToolResult
Result from tool execution

Traits§

Tool
A tool that can be executed by an agent