Tool names below come from packages/core/src/tools/definitions/base-declarations.ts and packages/core/src/tools/tool-names.ts. Use these exact names in policy rules, tools.allowed, tools.confirmationRequired, and tools.exclude.
Filesystem and search
| Name | Purpose | Plan Mode |
|---|---|---|
list_directory | List a directory's entries. | Yes |
glob | Match files against glob patterns. | Yes |
grep_search | Search file contents with ripgrep or the fallback matcher. | Yes |
read_file | Read a file, optionally by line range. | Yes |
read_many_files | Read several files in one call. | No |
Editing
| Name | Purpose | Plan Mode |
|---|---|---|
write_file | Create or overwrite a file. | No |
replace | Replace text within a file. | No |
apply_patch | Apply structured multi-file patches. | No |
Shell and background processes
| Name | Purpose | Plan Mode |
|---|---|---|
run_shell_command | Execute a shell command. | No |
execute | Codemode composite execution tool. | No |
list_background_processes | List running background shells. | No |
read_background_output | Read output from a background shell. | No |
Planning, tasks, and coordination
| Name | Purpose | Plan Mode |
|---|---|---|
enter_plan_mode / exit_plan_mode | Switch Plan Mode on and off. | No |
write_todos | Maintain a structured task list. | No |
update_topic | Narrate topic and progress updates. | Yes |
complete_task | Mark a delegated task complete. | No |
ask_user | Ask a clarifying question. | Yes |
invoke_agent | Invoke a subagent. | No |
Task tracker tools
Available when the tracker feature is enabled:
tracker_create_tasktracker_update_tasktracker_get_tasktracker_list_taskstracker_add_dependencytracker_visualize
Web, skills, memory, and docs
| Name | Purpose | Plan Mode |
|---|---|---|
google_web_search | Search the web. | Yes |
web_fetch | Fetch and summarize a URL. | No |
session_search | Search prior local sessions. | No |
get_internal_docs | Read bundled documentation when a docs root is found. | Yes |
activate_skill | Load a skill's full instructions. | Yes |
MCP-related tools
| Name | Purpose | Plan Mode |
|---|---|---|
list_mcp_resources | Enumerate MCP resources. | Yes |
read_mcp_resource | Read an MCP resource. | Yes |
Tools contributed by MCP servers are named with a server prefix. Use /mcp list and /mcp schema to discover them in a running session.
Additional Plan Mode tools
The Plan Mode prompt also includes the agent-side tools codebase_investigator and cli_help, filtered by what is enabled in the current configuration.
Key parameters
Tool names and parameter constants are registered in packages/core/src/tools/definitions/base-declarations.ts; authoritative descriptions are in definitions/model-family-sets/default.ts.
| Tool | Notable parameters |
|---|---|
grep_search | pattern, include_pattern, exclude_pattern, names_only, max_matches_per_file, total_max_matches, fixed_strings, context, after, before, no_ignore |
read_file | file_path, start_line, end_line |
run_shell_command | command, is_background, additional_permissions |
replace | file_path, instruction, old_string, new_string, allow_multiple |
apply_patch | patch_text |
execute | code |
session_search | limit |
read_many_files | include, exclude, recursive, useDefaultExcludes |
get_internal_docs | path |
activate_skill | name |
ask_user | questions with question, header, type, options, multiSelect, placeholder |
enter_plan_mode | reason |
exit_plan_mode | plan_filename |
update_topic | title, summary, strategic_intent |
web_fetch | prompt |
google_web_search | query |
write_todos | todos with description and status |
Restricting tools
{
"tools": {
"allowed": ["read_file", "glob", "grep_search"],
"confirmationRequired": ["run_shell_command", "apply_patch"],
"exclude": ["google_web_search"],
"core": ["list_directory", "glob", "grep_search", "read_file"]
}
}Precedence notes:
confirmationRequiredtakes precedence overallowed.- Policy rules evaluated by the core policy engine take precedence over simple allowlists. See Policy evaluation.
useWriteTodoscontrols availability ofwrite_todos.advancedandadminsettings can further restrict tools.
Inspecting tools at runtime
/tools list
/tools descUse /policies list to see which rules are currently active.
Next steps
See Built-in tools (guide) for configuration examples and Tool execution for the full execution pipeline.