esp_screenshot
Capture a monitor or screen region as a scaled image, returning a screenshot_id, origin and scale for clicking on-screen coordinates with the position tools.
Instructions
Screenshot of a monitor (default the primary one) or a region, scaled to max_width. The result gives screenshot_id, origin and scale: pass coords "screenshot" with that screenshot_id to the position tools to click what you see in the image. No lease needed.
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": "esp_screenshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | jpeg (default) or png. | |
| region | No | Or a region in physical screen pixels; it must lie on one monitor. | |
| monitor | No | Index into `monitors` of esp_status (default: the primary monitor). | |
| quality | No | JPEG quality 1..100 (default 80). | |
| max_width | No | Largest image width in px, 100..3840 (default 1568, config screenshot_max_width). Never scaled up. |