Default Tools
The agent runs with all Claude Code tools enabled. To restrict which tools the agent can use, passallowedTools:
MCP Servers
Model Context Protocol servers give the agent access to custom tools. MCP servers run inside the sandbox — the agent discovers available tools via the protocol. Pass MCP server configuration when starting the agent:McpServerConfig
Example: Custom API Tool
System Prompt
Steer agent behavior with a custom system prompt:Permission Mode
Controls how the agent handles tool permissions:bypassPermissions — the agent can use any available tool without confirmation. This is safe because the agent runs inside an isolated sandbox VM.
Max Turns
Limit how many think → act → observe iterations the agent can perform:maxTurns to prevent runaway agents on simple tasks. The default is 50.