click
Click UI elements by element ID or screen coordinates. Supports left, right, and double clicks for precise interaction with desktop apps.
Instructions
Click an element by ID, or at screen coordinates.
Pass ``element_id`` to click via the element's native
accessibility action (most reliable). Pass ``x`` and ``y``
to click directly at screen coordinates instead — useful
when clicking by ID triggers an unintended action (e.g.
opens a dropdown instead of focusing a text entry).
Every element shows its position as @(x,y) in listings.
Coordinate clicks always report OK even if nothing was hit —
verify the result with a screenshot or find().
Args:
element_id: The element ID to click.
x: Screen X coordinate (use with y instead of element_id).
y: Screen Y coordinate (use with x instead of element_id).
button: "left" (default) or "right".
double_click: If true, perform a double-click instead.
Cannot be combined with button="right".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | No | ||
| x | No | ||
| y | No | ||
| button | No | left | |
| double_click | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |