adb_wait_stable
Waits for the Android UI to stabilize by polling the hierarchy until consecutive dumps match, helping you avoid interacting with elements during transitions or loading.
Instructions
Wait for the UI to stabilize. Polls the UI hierarchy and waits until consecutive dumps produce the same element count and structure. Useful after screen transitions, animations, or content loading before interacting with elements.
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": "adb_wait_stable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| pollMs | No | Polling interval in ms (200-5000, default 500) | |
| timeoutMs | No | Maximum wait time in ms (1s-60s, default 10s) | |
| stableCount | No | Number of consecutive identical dumps required (2-10, default 2) |