pointer_click
Click an element or an image pixel (from the latest screen_capture of that display; without one, stale_capture). Returns dispatched, not a verdict: look at the result with observe or a capture. Moves the real pointer, so the owner may see it.
Arguments
Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.
| Name | Type | Required | Meaning |
|---|---|---|---|
button | `“left” | “right” | “middle”` |
count | integer | no | 1 click, 2 double, 3 triple (default 1). |
display | integer | no | Display the pixel belongs to (default: the one last captured). |
element | string | no | An element id from the latest ui_snapshot. Preferred; a stale id is element_gone. |
hold_ms | integer | no | Hold the button this long before release, in ms (at most 5000). |
modifiers | `“shift” | “ctrl” | “alt” |
observe | `“none” | “ui” | “image”` |
x | integer | no | Image pixel, with y. Needs a screen_capture of the display first. |
y | integer | no |
Result
| Name | Type | Required | Meaning |
|---|---|---|---|
audit_id | string | yes | Id of the audit line on the machine. |
dispatched | boolean | yes | |
foreground_changed | boolean | yes | The frontmost app or window changed because of the action. |
observation | object | no | |
settled_ms | integer | yes | How long the screen took to go quiet after the action, in milliseconds. |
Examples
MCP
{
"name": "pointer_click",
"arguments": {
"machine": "<machine>"
}
}Limits
The call times out after 20 s (timed_out). Available since version 0.0.2. A refused or failed call returns one of the error codes.