Wait for something to appear or disappear
ui_wait_forPoll an app's windows until a specified UI element appears or disappears, so you can wait for long jobs like analysis, generation, transcription, or export to finish before continuing.
Instructions
Poll an app's windows until an element with the given text/role appears (or disappears, with gone: true). Use after starting long jobs like analysis, generation, transcription or export.
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": {
"app": "<app>"
},
"name": "ui_wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path | |
| gone | No | ||
| role | No | Accessibility role without the AX prefix, e.g. Button, TextField, CheckBox, PopUpButton, MenuButton, Slider, Row, StaticText | |
| text | No | Text in the element's title, description or value (case-insensitive) | |
| exact | No | Require the whole text to match | |
| index | No | Which match to use when several match (0 = first) | |
| within | No | Only search inside this element id from ui_snapshot | |
| timeoutSeconds | No |