Request
Response shape
Tools
bash_tool
Run arbitrary shell commands inside the sandbox. Streams stdout/stderr with 15-second heartbeats, caps output at 30K chars (first 15K + last 15K), handles semantic exit codes (grep returning 1 is “no match”, not an error). Timeout: COMMAND_TIMEOUT (default 120s).
Arguments
view
Read files and directories. Returns content with line numbers for text; base64 for binaries; an auto-resized thumbnail for images when the MCP transport supports it.
Arguments
create_file
Create a new file. Parent directories are created automatically.
Arguments
str_replace
Find-and-replace a single occurrence. Fails loudly if old_str matches zero or more than one location — forces callers to be specific.
Arguments
sub_agent
Launch Claude Code CLI inside the sandbox as a long-running autonomous agent.
Arguments
See Sub-agents for the full picture.
Next
- tools/call — invoke a tool.
