wait_for
Pause execution until a UI element appears or disappears in a macOS app. Use after actions that open dialogs, load pages, or show spinners.
Instructions
Wait until an element matching find (role or label, like inspect find) appears in the app, or disappears with gone=true. Use after actions that open dialogs, load pages, or show spinners.
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": {
"find": "<find>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | Process name, e.g. "TextEdit". Defaults to the frontmost app. Works on background apps. | |
| find | Yes | ||
| gone | No | ||
| timeout | No | Seconds |