restore
Restore a sandbox to a previous snapshot, replacing its state while preserving workspace files.
Instructions
Destroy the current sandbox and boot from a saved snapshot. Workspace files are preserved (they live on a separate volume).
Args: snapshot_name: Name of the snapshot to restore (from list_snapshots) sandbox: Named sandbox to restore into (default "default")
Returns: Confirmation or error.
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": {
"snapshot_name": "<snapshot_name>"
},
"name": "restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| snapshot_name | Yes | ||
| sandbox | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |