Open a sandbox with a coding agent
connect_sandboxOpen a recorded terminal connected to a sandbox and start Claude Code or Codex so users can work in it; stopped sandboxes start automatically.
Instructions
Open a new terminal on the user's machine, connected to a sandbox, with Claude Code or Codex starting in it (a stopped sandbox is started). The user works there, and that session is recorded. Use when the user asks to connect to, open or work in a sandbox.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "connect_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A cloud sandbox's id (rtp-...), or a local sandbox's name, from list_sandboxes. | |
| agent | No | The coding agent to start in the terminal: claude (Claude Code, the default) or codex (Codex). none opens a plain shell. | |
| claude | No | Older form: false is agent: "none". |