Skip to main content

Module tools

Module tools 

Source
Expand description

Tools layer. The tool registry (Tool trait, Registry, ToolResult, ToolCtx) and most tool implementations (fs, edit, search, web, browser, git, exec, todo, media, code-nav, the memory tool…) live in the sparrow-tools crate so the heavy tool code compiles once and is cached. Re-exported here so existing crate::tools::* imports keep working.

extras and subagent stay in the binary crate: they sit at the top of the dependency graph (they hold an Arc<Engine>, spawn sub-agents via the Engine/Router, and carry gateway::GatewayResponse), which would create cycles if pulled below the engine.

Modules§

browser_sandbox
builder_tools
code_exec
Code execution in sandbox — runs code with timeout.
code_nav
Code navigation tools that bring Sparrow’s self-coding loop closer to a frontier agent’s: glob (find files by name pattern) and symbols (find where a symbol is defined / who calls it). The symbols tool is a regex-based index today; a tree-sitter AST upgrade keeps the same name/schema.
edit
exec
extras
file_search
File search tool for Sparrow.
fs
git
knowledge_graph
media
Multimodal tools: image generation + text-to-speech (§15).
memory
search_and_web
stt
Speech-to-Text tool for Sparrow.
subagent
todo
tts
Text-to-Speech tool for Sparrow.
voice
Voice command for Sparrow.
web_search
Web search tool — DuckDuckGo-based search with structured results.

Structs§

ToolCtx
ToolManifest
ToolMetadata
ToolRegistry
ToolResult

Constants§

KNOWN_TOOLS
TOOLSETS

Traits§

Tool
What an agent can do. Every tool declares a JSON schema and a risk level used by the autonomy gate.

Functions§

known_tool_metadata
metadata_for
resolve_workspace_path
surface_allows