Desktop screenshot
computer_screenshotTake a screenshot of the graphical desktop in the sandbox and return it as an image with its size and the screen size. Use it to see what is on the screen before acting with the mouse and keyboard, and to check the result afterwards. Needs a sandbox created from the 'desktop' template; Desktop & Computer Use must be enabled for your account (paid plans, or after topping up at least US$15). Without sandbox_id the last sandbox of this conversation is used – these tools never create one. It does not wake a sleeping 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": "computer_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Image format (default jpeg – smaller; png is lossless). | |
| quality | No | JPEG quality 1–100 (default 70). | |
| max_width | No | Scale the image down to at most this width in pixels (default 1280; 0 = full size). Coordinates for mouse actions are always screen pixels. | |
| 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 |
|---|---|---|---|
| width | Yes | Image width in pixels. | |
| format | Yes | Image format: jpeg or png. | |
| height | Yes | Image height in pixels. | |
| sandbox_id | Yes | Sandbox ID. | |
| screen_width | No | Screen width in pixels (mouse coordinates). | |
| screen_height | No | Screen height in pixels. |