DocumentationAgent tools

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 parallel explore sub-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 code repl, and skill.
  • Web — web_search and fetch_url (run on the backend).
  • Ask you — ask_user presents interactive multiple-choice questions.

Connected MCP (Model Context Protocol) servers add their own tools dynamically.