await-screen-idle
Blocks until the screen has rendered stable content before screenshots or taps, returning settled status or a timeout result.
Instructions
Block until the screen has rendered content and held it for minStableMs, or the timeout elapses. It polls the same element tree as describe.
Use when a launch or navigation must finish rendering before a screenshot or tap.
Returns { settled, waitedMs, polls, note? }. If that is not seen before timeoutMs, it returns settled=false instead of failing.
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": {
"udid": "<udid>"
},
"name": "await-screen-idle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Target device id from `list-devices` (iOS UDID, Android serial, Vega serial, or Chromium id). | |
| timeoutMs | No | Max time to wait for the screen to settle before giving up (default 3000). Maximum: 120000. Must be greater than 0. | |
| minStableMs | No | The screen must hold the same content for at least this long to count as settled (default 250); 0 settles on the first non-empty read. Range: 0 to 10000. | |
| pollIntervalMs | No | How often to re-read the tree (default 200). Range: 50 to 5000. |