mac_wait
Wait for a macOS accessibility condition instead of sleeping by polling windows, text, elements, menus, sheets, app state, or notifications; returns the last observed state on timeout.
Instructions
Wait (instead of sleeping) until a condition holds, polling accessibility: window / window_gone (title substring, app), text / text_gone (in app's window), element (element_index + predicate exists|gone|enabled|focused|value_equals|value_contains, value), menu / menu_closed, sheet / sheet_gone (sheet, alert or dialog), app_running / app_gone, notification (a new one, optional app / text; refused under NORACU_READ_ONLY=1). For window_gone, text_gone, menu_closed and sheet_gone the app must be running when the wait starts (a misspelled or non-running app fails immediately with app_not_found). timeout_ms default 10000, max 30000; on timeout returns what it last saw.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"condition": "<condition>"
},
"name": "mac_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | ||
| text | No | ||
| exact | No | ||
| title | No | ||
| value | No | ||
| window | No | ||
| condition | Yes | ||
| predicate | No | ||
| timeout_ms | No | ||
| snapshot_id | No | ||
| element_index | No |