Work with agents
Agent tools
1 min read Dragent guide
The agent works by calling tools, each shown as a labeled block, with edits rendered as diff cards. Read-only tools generally run without asking; changes and commands follow your approval policy.
- Read & inspect — read files, list directories, show a tree, get file info, list allowed roots.
- Search —
grep,search_codebase(hybrid semantic + exact), and a parallelexploresub-agent. - Edit & write — write, edit, batch-edit, apply patches, create directories, move files (with a guard against blindly overwriting unread files).
- Run & orchestrate —
run_command,spawn_subagent, task management, a coderepl, andskill. - Web —
web_searchandfetch_url(run on the backend). - Ask you —
ask_userpresents interactive multiple-choice questions.
Connected MCP (Model Context Protocol) servers add their own tools dynamically.
Something unclear?Help us improve this page