Skip to main content

Module tools

Module tools 

Source

Re-exports§

pub use read_history::MustReadFirstError;
pub use read_history::ReadHistoryTracker;
pub use toolproxy::ProxyMetadata;
pub use toolproxy::ProxyTool;
pub use toolproxy::ProxyToolDef;
pub use toolproxy::ProxyToolExecutor;
pub use toolproxy::ProxyToolRequest;
pub use toolproxy::ProxyToolResponse;

Modules§

ask
Ask tool: allow the AI to proactively ask the user for clarification or choice.
bash
Bash command execution tool
browser
浏览器打开工具
code_quality_hook
Code Quality Verification Hook
codegraph
CodeGraph integration for code symbol indexing and search.
edit
glob
grep
ls
monitor
multi_edit
plan_mode
read
read_history
Read history tracker for edit/write precondition checks.
registry
Tool Registry
search
skill
skill tool: loads a named skill’s full instructions into the conversation on demand. Only skills that were discovered at startup are accessible. The tool response contains the skill body plus a listing of the skill’s directory so the model knows what files it can read next.
subagent_executor
Subagent Executor - Real agent instance execution for parallel tasks.
task
todo_write
tool_hooks
Tool Execution Hooks System
toolproxy
Proxy Tool Executor Trait
verify
Verification suggestion system for code changes.
webfetch
websearch
Web Search Tool
workflow
Workflow Tools
write

Structs§

ToolContext
Context for tool definition generation Used to customize tool descriptions based on available features
ToolDefinition

Traits§

Tool

Functions§

all_tools
Default toolset without any skill integration. Kept for callers (and the existing tests) that don’t care about skills.
all_tools_full
Build full toolset with provider and project path.
all_tools_full_with_lsp
Build full toolset with provider, project path, and optional LSP registry.
all_tools_with_arc_provider
Build toolset with Arc Provider (preferred method)
all_tools_with_box_provider
Build toolset with Box Provider (for CLI compatibility - safe implementation) Uses clone_arc to safely convert Box to Arc without unsafe code.
all_tools_with_project_path
Build toolset with project path for CodeGraph integration.
all_tools_with_project_path_and_lsp
Build toolset with project path and optional LSP registry.
all_tools_with_provider
Build toolset with Provider for AI-powered tools.
all_tools_with_skills
Build the toolset with skill support but without provider.
generate_tools_prompt
Generate tools description for system prompt
generate_tools_prompt_with_path
Generate tools description with optional CodeGraph support
generate_tools_prompt_with_path_and_lsp
Generate tools description with optional CodeGraph and LSP support

Type Aliases§

BoxedTool
Type alias for boxed tool