wait_for_stable
Waits until the mobile UI stops changing by confirming two identical UI tree snapshots, then returns the stable tree and optional screenshot for reliable interaction.
Instructions
Wait until the screen stops changing (two consecutive UI tree snapshots are identical). Returns the stable UI tree and optionally a screenshot.
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_for_stable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. | |
| filter_ui | No | Filter UI tree to relevant elements only. Default: true | |
| timeout_ms | No | Maximum time to wait in ms. Default: 10000 — this waits out animation, not network | |
| poll_interval_ms | No | Polling interval in ms. Default: 500 | |
| include_screenshot | No | Also capture a screenshot after stabilization. Default: false |