ax_focus
Move keyboard focus to an on-screen control by matching its accessibility role or label. Works on macOS native apps.
Instructions
Move keyboard focus to a control through the OS accessibility tree (macOS Accessibility; not yet implemented on Windows, where it returns a clear error). Background, no cursor. query matches the element's role/label. Targets the last window-captured app (or frontmost). Native-app accessibility only.
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"). |