Tools
| Tool | What it does |
|---|---|
read |
numbered lines of a text file (offset, limit), a directory listing, or an image file (PNG, JPEG, GIF, WebP) as an image |
write, edit |
create or overwrite a file; replace an exact string. Each records the file's contents before and after, so a rewind can restore them |
bash |
a command in the OS sandbox with a timeout; run_in_background returns a shell id at once (dev servers, watchers) |
bash_output, bash_kill |
read a background shell's new output (optionally filtered by a regex) and exit status; stop it and its children |
grep |
regex search over file contents (Rust-style syntax, linear time), respecting .gitignore and skipping binaries: files_with_matches, content (with context lines) or count; glob and type filters; head_limit / offset paging |
glob |
files matching a glob (**, {a,b}), newest first, respecting .gitignore |
web_fetch |
a URL as Markdown (HTML converted), text or an image; long pages are paged with start |
web_search |
titles, URLs and snippets, with allowed_domains / blocked_domains |
skill |
a skill's instructions and its folder's file list |
agent |
a sub-agent (see Sub-agents) |
tool_search, codemode |
discover deferred tools; run a JavaScript snippet that chains tool calls (see Codemode) |
grep and glob are native: they behave the same on every platform and need no rg. They never descend into .git or credential stores. Their regex engine (src/regex.zig) is a Pike VM, so no pattern can backtrack exponentially; it has no look-around or backreferences.
Web. web_fetch and web_search run in-process, so network: false / --no-net turns them off. web_fetch follows up to five redirects and refuses loopback, private, link-local and cloud-metadata addresses at every hop, unless a web_fetch(domain:...) allow rule names the host. web_search uses the backend in web_search config, else the first of BRAVE_API_KEY, TAVILY_API_KEY and EXA_API_KEY that is set, else DuckDuckGo's keyless HTML endpoint. A SearXNG instance takes "provider": "searxng", "url": "https://...". Both are approved like MCP calls in ask mode (read-only agents may fetch, with approval).