ax_focus
Focus a control by matching its accessibility role or label in the background via macOS Accessibility or Windows UI Automation, without moving the cursor. Ambiguous substring matches fail closed.
Instructions
Legacy query action that focuses a control through macOS Accessibility or Windows UI Automation. Background, no cursor. Ambiguous substring matches fail closed; prefer a fresh ax_read node whenever possible.
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"). |