Expand description
Tools module.
Implements built-in tools (shell, file ops, grep, glob, etc.) that the AI can invoke during agentic execution.
Re-exports§
pub use edit::EditTool;pub use glob::GlobTool;pub use grep::GrepTool;pub use ls::LsTool;pub use read::ReadTool;pub use shell::ShellTool;pub use web_fetch::WebFetchTool;pub use web_search::WebSearchTool;pub use write::WriteTool;
Modules§
- edit
- Edit tool – search-and-replace editing of files.
- glob
- Glob tool – discovers files by glob pattern matching.
- grep
- Grep tool – searches file contents via regex with gitignore awareness.
- ls
- Ls tool – lists directory contents with metadata.
- read
- Read tool – reads files with line numbers.
- shell
- Shell tool – executes commands via the system shell.
- web_
fetch - Web fetch tool – fetches URLs with HTML-to-text conversion.
- web_
search - Web search tool – queries Brave Search API.
- write
- Write tool – writes content to files.
Functions§
- truncate_
output - Truncate output to fit within
max_bytes, preserving head and tail.