Skip to content

Built-in tools

This list is verified against crates/tools/src/specs.rs (mvp_tool_specs) and the permission-level mappings declared next to each spec.

Permission categories:

CategoryDefault behavior in default mode
ReadOnlyAuto-allowed.
WriteWorkspacePrompts for approval. Auto-allowed in acceptEdits.
FullAccessPrompts for approval. Auto-allowed only in bypassPermissions / dontAsk.

Plan mode (enter_plan_mode) blocks every WriteWorkspace and FullAccess tool except writes to the plan file itself. The model must call exit_plan_mode to leave plan mode.

ToolPermissionDescription
read_fileReadOnlyRead a file’s contents (default 2000-line cap, configurable).
write_fileWriteWorkspaceCreate or overwrite a file.
edit_fileWriteWorkspaceReplace text within an existing file.
delete_fileWriteWorkspaceDelete a single file (not directories).
apply_patchWriteWorkspaceApply a fuzzy unified-diff patch across one or more files.
glob_searchReadOnlyFind files matching a glob pattern.
grep_searchReadOnlySearch file contents with regex (ripgrep-style).
list_dirReadOnlyList directory entries with optional recursion.

Shell & execution

ToolPermissionDescription
bashFullAccessRun a shell command, with optional timeout and background-execution.
bash_session_startFullAccessStart an interactive shell session.
bash_session_readFullAccessRead output from an interactive shell session.
bash_session_writeFullAccessWrite input to an interactive shell session.
bash_session_closeFullAccessClose an interactive shell session.
powershellFullAccessRun a PowerShell command (Windows or pwsh cross-platform).
replFullAccessExecute a code snippet (Python, Node, Ruby, Bash).
sleepReadOnlyPause execution for a specified duration.

Web & media

ToolPermissionDescription
web_fetchReadOnlyFetch and analyze a web page.
web_searchReadOnlyInternet search with allowed/blocked domain filters.
image_generationWriteWorkspaceGenerate images via the active provider’s image model.
view_imageReadOnlyDisplay an image file (auto or original resolution).
notebook_editWriteWorkspaceEdit Jupyter notebook cells (insert / replace / delete).

Planning & user interaction

ToolPermissionDescription
ask_user_questionReadOnlyAsk the user a single question or batch with options.
send_user_messageReadOnlySend a message to the user (normal or proactive).
structured_outputReadOnlyEmit structured JSON (used by the --output-schema fallback path).
enter_plan_modeReadOnlyEnter plan-design mode (plan-file-only writes).
exit_plan_modeReadOnlyExit plan mode and request user approval.

Sub-agents & tasks

ToolPermissionDescription
agentReadOnlySpawn a sub-agent (explore or general type).
agent_continueReadOnlySend a follow-up message to an existing sub-agent.
agent_statusReadOnlyQuery a sub-agent’s execution status.
agent_stopReadOnlyCancel a running sub-agent.
task_createReadOnlyCreate a task with subject and description.
task_updateReadOnlyUpdate task status, subject, or dependencies. Accepts single ({taskId, …}) or batch ({updates: […]}) form.
task_listReadOnlyList all tasks.
task_getReadOnlyRetrieve details for a single task.
todo_writeReadOnlyOverwrite the todo list.
send_messageReadOnlyInter-agent messaging (target a specific agent or broadcast).
spawn_agents_on_csvFullAccessSpawn agents in parallel from CSV rows with template substitution.

MCP & workspace

ToolPermissionDescription
list_mcp_resourcesReadOnlyList available resources from configured MCP servers.
read_mcp_resourceReadOnlyRead a resource from an MCP server.
lspReadOnlyDrive the built-in LSP subsystem (definition, references, hover, diagnostics, …).
enter_worktreeFullAccessCreate or enter a git worktree.
exit_worktreeFullAccessExit a worktree and optionally remove it.

Automation

ToolPermissionDescription
configWriteWorkspaceRead or write CLI configuration settings.
cron_createWriteWorkspaceSchedule a recurring or one-time job.
cron_deleteWriteWorkspaceRemove a scheduled job.
cron_listReadOnlyList all scheduled jobs.
skillReadOnlyExecute a skill by name.

Notes

  • tool_search is intercepted by the runtime before it reaches the agent’s tool dispatch path; it does not appear as a registered spec.
  • read_file, glob_search, grep_search, and other ReadOnly tools are always permitted in plan mode.
  • image_generation requires that the active provider has an image model configured. With no image model, the call is rejected with a clear error.