Create disk snapshot
create_snapshotSave a snapshot of the sandbox's disk (all files, installed packages and settings – not memory or running programs). The sandbox keeps running after a pause of a few milliseconds; a sleeping sandbox is not woken. Use it before a risky change, or to start new sandboxes from this state later (from_snapshot when creating a sandbox). Snapshots count towards your plan's snapshot limit and their disk is billed like sleeping sandboxes. Without sandbox_id the current sandbox is used – this never creates one.
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": "create_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional label (lowercase letters, digits, . _ -), e.g. 'before-upgrade'. | |
| sandbox_id | No | Sandbox ID (sb_…). If omitted, the current sandbox of this session is used. A sandbox_id you pass becomes the current sandbox for later calls without sandbox_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label. | |
| vcpu | No | vCPU of the source sandbox (default for sandboxes from the snapshot). | |
| mem_mb | No | RAM in MB of the source sandbox. | |
| disk_mb | No | Disk size in MB. | |
| template | Yes | Template of the source sandbox. | |
| created_at | Yes | Creation time (RFC 3339, UTC). | |
| size_bytes | Yes | Space the snapshot takes (billed as storage). | |
| snapshot_id | Yes | Snapshot ID (snap_…). | |
| source_sandbox | Yes | Sandbox the snapshot was taken from. |