take_screenshot
Take a screenshot of a ready sandbox's focused tab, and see it. It's saved as an asset in the sandbox's folder (under screenshots/ unless name says otherwise), so a document can use it.
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": "take_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Its name in the sandbox's folder, such as `checkout.png`; `screenshots/<time>.<format>` when absent. | |
| format | No | `png`, `jpeg` or `webp`; `png` when absent. | |
| full_page | No | The whole page rather than only what's in view. | |
| sandbox_id | Yes | The sandbox, `sbx_…`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Its path in the workspace, such as `launch/intro.mp4`. | |
| size | Yes | Bytes. | |
| sha256 | Yes | Its content's SHA-256, lowercase hex. | |
| source | No | What it was made from; absent for an upload. | |
| created_at | Yes | RFC 3339. | |
| created_by | Yes | The API key or member that recorded it. | |
| project_id | Yes | The project it's in. | |
| updated_at | Yes | RFC 3339. | |
| content_type | Yes | Its media type, such as `video/mp4`. | |
| download_url | No | A short-lived URL that downloads it, on a single asset's read. |