click_element
Press buttons or links, or focus text fields by id or label in macOS apps. Uses accessibility actions, then a real click fallback, without moving the mouse or stealing focus from background apps.
Instructions
Press a button/link or focus a text field by id or label. Uses accessibility actions (no mouse movement) and falls back to a real click at the element center.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Element id from inspect, e.g. "1.3.2" | |
| app | No | Process name, e.g. "TextEdit". Defaults to the frontmost app. Works on background apps. | |
| role | No | Role to match, e.g. "AXButton". Alone, it must match exactly one element. | |
| label | No | Element name/description/value to match (used when id is not given) |