screenshot
Captures an instance's display as an image so agents can inspect the screen before acting; supports region crops, scaling, and saving evidence files.
Instructions
Screenshot of an instance's display — the ONLY way to see the screen; always look before you act.
Returns [json, image]: {"ok", "instance", "width", "height", "region", "scale", "format", "bytes"} plus the image. Options to cut payload or zoom: region="x,y,w,h" crop to a rectangle (zoom into small text/icons; coordinates stay absolute — add x,y back when you click), default = full display; scale=0.5 downscale (0.1–1.0) for cheap overview shots; format="jpeg" smaller than PNG for photos/video, quality 1–95 (default png, lossless); save_as="shot.png" write the image into the instance's staging folder files// and return ONLY the JSON ({…, "saved": path, "name", "overwritten"}) — no image content, so no image tokens: for evidence you will attach or upload, not look at. Same path rules as put_file; an existing file is replaced. For an element list with coordinates use parse_screen (basic/local vision). Prefer observe='screenshot' on action tools to act and see the result in one call. Fails (isError) if the instance is down, the region is outside the display, or the format is unknown.
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": "screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| format | No | png | |
| region | No | ||
| quality | No | ||
| save_as | No | ||
| instance | No |