Put sandbox to sleep
pause_sandboxPut the sandbox to sleep now: its files are kept, running programs stop and it costs no compute time. Any later command wakes it up in a few seconds. A sleeping sandbox is deleted after your plan's retention period (see delete_at); keep_days keeps it longer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pause_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep_days | No | Optional: keep the sandbox this many days after it falls asleep (0 = your plan's default; the plan sets the maximum). | |
| sandbox_id | No | Sandbox ID (sb_…). If omitted, the current sandbox of this session is used. Passing it does not change the current sandbox. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | State after the call: sleeping. | |
| delete_at | No | When the sleeping sandbox is deleted with its files unless it is used again (RFC 3339, UTC). | |
| keep_days | No | Days the sandbox is kept after falling asleep, if set (otherwise your plan's default). | |
| sandbox_id | Yes | Sandbox ID. |