start_sandbox
Start a sandbox: a browser on a GPU machine, for showing websites in videos. Drive it with Playwright (connectOverCDP), Puppeteer or any CDP client at its cdp_url, which it has once it's ready. With wait, this answers once it's ready, waiting up to 45 seconds; otherwise call get_sandbox until it is. Take screenshots with take_screenshot and record it with start_recording; their files land as assets in its folder. It stops itself after its timeout (an hour unless timeout says otherwise); stop it with stop_sandbox when you're done. Its time is billed per second while it runs, at least a minute.
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": "start_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Answer once it's ready (or failed), waiting up to 45 seconds, instead of at once. | |
| folder | No | The folder its recordings and screenshots go in, ending in `/`; `sandboxes/<id>/` when absent. | |
| timeout | No | Seconds it runs before it stops itself, from 60 to 21600; 3600 (an hour) when absent. | |
| viewport | No | The browser window; 1920×1080 at scale 1 when absent. | |
| project_id | No | The project its recordings and screenshots go in; the workspace's default project when absent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | `sbx_…`. | |
| error | No | Why it failed. | |
| state | Yes | `starting`, `ready`, `stopping`, `stopped` or `failed`. | |
| folder | Yes | The folder its recordings and screenshots go in. | |
| region | Yes | The region it runs in. | |
| cdp_url | No | While it's ready: the browser's DevTools websocket, for Playwright's `connectOverCDP`, Puppeteer's `connect` or any CDP client. It opens connections until `cdp_url_expires_at`; a connection stays open until the sandbox stops. Get the sandbox again for a fresh one. | |
| timeout | Yes | Seconds it runs before it stops itself. | |
| viewport | Yes | The browser window. | |
| created_at | Yes | RFC 3339. | |
| project_id | Yes | The project its recordings and screenshots go in. | |
| started_at | No | RFC 3339: when its browser was ready. | |
| stopped_at | No | RFC 3339. | |
| stop_reason | No | Once it's stopping: `requested` or `timeout`. | |
| cdp_url_expires_at | No | RFC 3339. |