stop_recording
Stop a recording. It answers once its files have finished uploading, with the assets it made: the screen's video and, when it recorded audio, the browser's audio as its own file.
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>",
"recording_id": "<recording_id>"
},
"name": "stop_recording"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandbox_id | Yes | The sandbox, `sbx_…`. | |
| recording_id | Yes | The recording, `rec_…`. |
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. |