click
Click a UI element by its ID or at precise screen coordinates. Use element ID for reliable accessibility actions, or pass X and Y coordinates to avoid unintended actions like opening dropdowns.
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 |