Skip to main content

Module tools

Module tools 

Source

Modules§

file_tools
gh_tools
lsp_tools
memory_tools
meta_tools
search_tools
shell_tools
symbol_tools

Structs§

ReadOnlyContext
Minimal shared context passed to every parallel read-only task.
ToolCall
ToolRegistry
ToolResult

Functions§

execute_read_only
Execute a single read-only tool call without holding a &mut ToolRegistry. Navigation tools (go_to_definition, find_references, hover) always use the grep fallback here — LSP is reserved for the sequential registry path.
is_read_only
Returns true for tools that are pure reads with no side-effects. These can safely be executed in parallel when the LLM issues several at once.
tool_defs
Return the tool definitions to send to the LLM. search_web is gated on a search key being present. create_pr / get_ci_status are gated on pr_enabled.
view_git_diff
Run git diff HEAD (or git diff HEAD -- <path>) in the workspace and return the output.