start_recording
Start recording a ready sandbox's screen, and its audio unless audio is false. Its files upload as assets while it records, in a folder of its own in the sandbox's folder. Stop it with stop_recording; stopping the sandbox stops it too.
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": {
"sandbox_id": "<sandbox_id>"
},
"name": "start_recording"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The folder in the sandbox's folder its files go in, such as `checkout-flow`; the recording's ID when absent. | |
| audio | No | Record the browser's audio too, as its own file; true when absent. | |
| sandbox_id | Yes | The sandbox, `sbx_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | `rec_…`. | |
| error | No | Why it failed, or why a file of it is missing. | |
| state | Yes | `recording`, `done` or `failed`. | |
| assets | Yes | Its files, once it's done: the screen's video (`screen.mp4`, or `screen.mkv` from a GPU capture), and the browser's audio (`system-audio.m4a`) when it records audio. | |
| folder | Yes | The folder its files go in. | |
| created_at | Yes | RFC 3339. | |
| sandbox_id | Yes | The sandbox it records. | |
| stopped_at | No | RFC 3339. |