mac_find
Search a macOS app's accessibility tree by role, title, value, text, or identifier to locate UI elements and return element-indexed matches for targeted actions.
Instructions
Search an app's accessibility tree for elements by role (e.g. button, textfield, checkbox, row), title, value, text (title or value) or id (AXIdentifier); substring match, case-insensitive, unless exact:true. Returns up to limit (default 10, max 50) matches, each with an element_index (a new snapshot). surface: window (default) | menubar | app; window: index or title, or window_id from mac_windows; web_accessibility (default true, false under NORACU_READ_ONLY=1) sets AXManualAccessibility on Electron/Chromium apps and never sets AXEnhancedUserInterface (which alters window behaviour); the result reports web_accessibility like mac_ax_state.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mac_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| app | No | ||
| role | No | ||
| text | No | ||
| exact | No | ||
| limit | No | ||
| title | No | ||
| value | No | ||
| window | No | ||
| surface | No | ||
| window_id | No | ||
| web_accessibility | No |