Stop and archive sandbox
stop_sandboxStops and archives a sandbox for later resume or fork, refusing the stop if its disk snapshot fails so active work is not discarded.
Instructions
Stop and archive sandbox. Stop active work and archive/snapshot the sandbox for later resume or fork.
A stop always saves the sandbox's disk first. If that save is failing, the stop is refused and the sandbox keeps running so your work is not discarded, we retry automatically and email you. You are not billed for time spent in that state.
The stop is an operation: the response and the sandbox carry it as stop, with an
id and a status. Poll GET /sandboxes/{sandboxId} until stop.status is
completed. A failed attempt shows failing with its error and is retried
until the sandbox archives; commands and prompts you send meanwhile do not cancel
it. Only a resume ends it early (superseded). Calling stop again while one is
pending returns the same id.
Set force: true to stop anyway, keeping the last successful snapshot and
losing everything written since then. This is irreversible; only reach for it
after a stop has already failed. A force on a stop that is already pending
escalates that stop.
A stop never fails because the sandbox is already stopping or stopped: you get 202
with the stop in progress, or 200 with the last stop once the sandbox is stopped.
statusUrl is the path that reads the stop.
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": {
"sandboxId": "<sandboxId>"
},
"name": "stop_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Stop the sandbox even if its disk cannot be snapshotted. It keeps its last successful snapshot and everything written since then is permanently LOST. Without this, a sandbox whose snapshot pipeline is failing is left running rather than discarding your work, and you are not billed for that time. Only use this after a stop has already been refused. | |
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |