esp_click
Clicks a hardware mouse at physical screen coordinates, verifies the cursor before acting, and skips the click if the target is missed beyond tolerance.
Instructions
Click through the hardware mouse. With x and y it first moves there and verifies the cursor; when the cursor misses by more than tolerance_px it does NOT click (position_mismatch). Coordinates are physical screen pixels. The receipt does not confirm what the click did: check the screen.
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": {
"control_id": "<control_id>"
},
"name": "esp_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional target X (physical screen px); give both x and y or neither (click in place). | |
| y | No | Optional target Y. | |
| count | No | 1..3 (double click = 2). Default 1. | |
| button | No | Default left. | |
| coords | No | "screen" (default): physical screen pixels. "screenshot": pixels of the image from esp_screenshot named by screenshot_id. | |
| modifiers | No | Keys held during the click, e.g. ["ctrl"]; released in the same call. | |
| control_id | Yes | From esp_control begin. | |
| request_id | No | Optional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again. | |
| tolerance_px | No | Allowed distance from the target in px per axis (default 1); farther = no click. | |
| screenshot_id | No | With coords "screenshot": the screenshot_id the coordinates refer to. |