Tools are the primitives the agent uses to inspect and change a workspace. Built-in tool names are declared in packages/core/src/tools/definitions/base-declarations.ts and packages/core/src/tools/tool-names.ts.
Filesystem and search
| Tool name | Purpose |
|---|---|
list_directory | List files and directories. |
glob | Find files by glob pattern. |
grep_search | Search file contents with ripgrep (or the fallback matcher). |
read_file | Read a file, optionally with line ranges. |
read_many_files | Read multiple files in one call. |
write_file | Create or overwrite a file. |
replace | Replace text in a file. |
apply_patch | Apply structured multi-file patches. |
Shell and background processes
| Tool name | Purpose |
|---|---|
run_shell_command | Execute a shell command. |
list_background_processes | Enumerate running background shells. |
read_background_output | Read output from a background shell. |
execute | Codemode execution tool for composite operations. |
Shell behavior is configurable through tools.shell: enableInteractiveShell (node-pty), pager, showColor, inactivityTimeout, backgroundCompletionBehavior, and enableShellOutputEfficiency.
Web and external context
| Tool name | Purpose |
|---|---|
google_web_search | Web search. |
web_fetch | Fetch and summarize a URL. |
session_search | Search prior local sessions. |
get_internal_docs | Read M31A's own bundled documentation when a docs root is available. |
get_internal_docs locates a documentation root by looking for docs/sidebar.json and serves Markdown files to the agent.
Planning and coordination
| Tool name | Purpose |
|---|---|
enter_plan_mode / exit_plan_mode | Switch Plan Mode on and off. |
write_todos | Maintain a structured task list (useWriteTodos). |
update_topic | Narrate topic and update progress. |
complete_task | Mark a delegated task complete. |
ask_user | Ask the user a clarifying question. |
invoke_agent | Invoke a subagent. |
Task tracker (experimental)
tracker_create_task, tracker_update_task, tracker_get_task, tracker_list_tasks, tracker_add_dependency, and tracker_visualize are available when the task tracker is enabled.
Skills and MCP
| Tool name | Purpose |
|---|---|
activate_skill | Load an agent skill on demand. |
list_mcp_resources | List resources exposed by MCP servers. |
read_mcp_resource | Read a specific MCP resource. |
Tools contributed by MCP servers are prefixed with the server name. See MCP.
Tool discovery and restrictions
tools.allowedbypasses confirmation for named tools.tools.confirmationRequiredforces confirmation even for otherwise allowed tools.tools.excluderemoves tools from discovery.tools.corerestricts the built-in tool set.tools.useRipgrepselects ripgrep for content search.tools.truncateToolOutputThresholdcaps displayed output (default40000characters).tools.disableLLMCorrectioncontrols retry behavior for failed edit tools.
Use /tools list and /tools desc in the CLI to see the tools available in the current session. See Approval modes for how tool calls are authorized.