Clone sandbox
clone_sandboxMake 1–10 independent copies of a sandbox from its current disk (files and installed packages; programs are not running in the copies). Each copy is a new sandbox with its own ID, IP addresses and identity (new machine-id). Use it to try several approaches in parallel from the same starting point. Copies keep the source's settings: the same lifetime, behaviour after it (sleep or destroy), inactivity limit, compute class and network access (no internet, allowed and blocked destinations, IP version). timeout_s changes only the lifetime of the copies; network access, IP version and compute class are always inherited, and a copy never gets wider network access than the source. Copies count towards your concurrent sandbox limit; when only some can be created, the result lists the errors. The copies do not become the current sandbox: without sandbox_id the current sandbox is cloned and stays current; a sandbox_id you pass becomes the current sandbox, as with the other tools. To work in a copy, pass its sandbox_id to a later call (that copy then becomes the current sandbox).
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": "clone_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name of the copy (lowercase letters, digits, . _ -); several copies are named <name>-1 … <name>-N. | |
| count | No | Number of copies, 1–10 (default 1). | |
| timeout_s | No | Optional lifetime of the copies in seconds (default: the same as the source sandbox). | |
| 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 |
|---|---|---|---|
| errors | Yes | Copies that could not be created. | |
| sandbox_ids | Yes | IDs of the new sandboxes. | |
| source_sandbox | Yes | Sandbox ID. |