wait
Pauses automation until a duration elapses, text or selector appears, a selector is strictly absent, or the UI stabilizes; stops at the 90s timeout unless a budget extends it.
Instructions
Wait for a duration, text, snapshot ref, selector to appear, selector to be strictly absent, or stable UI. Text matches a label, identifier, or value; an editable field never matches by its current value or by a label that only repeats it, so text you typed does not satisfy it. Use the strict absence target when zero selector matches are required; stable waits until the UI stays quiet for the requested window. Times out after 90s; a caller-supplied budget extends it.
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": "wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| ref | No | ||
| kind | No | ||
| text | No | ||
| udid | No | Apple device or simulator UDID. | |
| debug | No | Enable debug diagnostics. | |
| depth | No | ||
| scope | No | ||
| absent | No | ||
| device | No | Device name; ids go in udid or serial. | |
| serial | No | Android, HarmonyOS, or Vega VVD serial. | |
| stable | No | ||
| target | No | Alias for deviceTarget. | |
| quietMs | No | ||
| session | No | Session name. | |
| noRecord | No | Do not record this action. | |
| platform | No | Device platform. | |
| selector | No | ||
| timeoutMs | No | ||
| durationMs | No | ||
| includeCost | No | Add agent cost (cost.wallClockMs, …) to the result, returned as JSON text. | |
| deviceTarget | No | Device form factor. | |
| responseLevel | No | Result detail: digest (smallest) or full (largest), as JSON; default is compact text. | |
| mcpOutputFormat | No | Result text: compact optimized (default) or the full result as JSON (larger). |