Agent
Tools
The agent acts on your project by calling tools. Here's the full set and what each one does.
The toolset
read_file— read the contents of a file to gather context.list_dir— list a directory to understand project layout.grep— search the codebase for a pattern, optionally scoped by a glob.write_file— create a new file with given contents.edit_file— make a targeted edit to an existing file by replacing a span of text.run_terminal— run a shell command (build, test, lint). Asks for approval unless pre-approved.web_fetch— fetch a specific URL to ground on docs or references.search_web— run a web search and read the top results.
Approvals & safety
Side-effecting tools — running commands and fetching the web — surface an approval prompt the first time. web_fetch refuses non-HTTP(S) URLs and blocks loopback and cloud-metadata addresses to prevent SSRF. You can extend the agent with your own tools via MCP servers.
Next