mac_ax_state
Read a foreground macOS app's accessibility tree to get element indexes, roles, titles, values, and frames for click or drag actions; optionally set app name and depth.
Instructions
Read the foreground app's accessibility tree (element index/role/title/value/frame; indexes feed mac_click/mac_drag for 30s); menu bar pruned by default (use mac_menu_command); optional app name and depth (default 3, clamped 1-10). Returns ax_empty if the app has no AX-visible window (not frontmost / another Space).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| depth | No |