screenshot
Capture the screen as an image to inspect visual UI elements, menus, or apps when text extraction fails, then click exact pixel coordinates.
Instructions
See the screen as an image. Use it whenever reading text isn't enough: you can't find or read an element, a dropdown/list/menu isn't behaving, a click hit the wrong thing, or the app is visual (canvas, maps, images). Then click what you see with act([{"click": [x, y]}]) in this image's pixels. ref="window" or "w3" = just that window; ref="e12"/"b12" = crop around an element (cheap, sharp); region=[x,y,w,h] in the previous screenshot's pixels = zoom in; marks=draw snapshot refs on the image. A full screen costs ~1-2k tokens; crops cost less.
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 |
|---|---|---|---|
| ref | No | ||
| marks | No | ||
| region | No | ||
| screen | No | ||
| max_side | No |