Wait for
wait_forPoll the macOS UI tree until a selector appears or timeout, enabling automation to synchronize with dynamic interface states.
Instructions
Poll the UI tree until a selector appears, or time out.
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": {
"selector": "<selector>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pollMs | No | Default 100. | |
| window | No | ||
| selector | Yes | ||
| timeoutMs | No | Default 5000. |