ax_click
Clicks UI elements by matching a case-insensitive substring of their accessibility role or label, without moving the cursor or requiring the app to be frontmost.
Instructions
Legacy query action through macOS Accessibility or Windows UI Automation — no coordinates, no cursor movement, works in the background (the app need not be frontmost). query is a case-insensitive substring of the element's accessibility role or label/title (e.g. "Send", "Search"). Ambiguous matches fail closed. Prefer fresh ax_read + ax_activate for exact, generation-safe actions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Case-insensitive substring matching the target element's accessibility role or label/title (e.g. "Send", "Search", "AXButton"). |