adb_wait_element
Waits for a UI element to appear or disappear by polling the Android UI hierarchy, handling navigation, animations, and async content loading with configurable timeout and polling intervals.
Instructions
Wait for a UI element to appear or disappear. Polls the UI hierarchy at regular intervals until the condition is met or timeout expires. Useful for waiting after navigation, animations, or async content loading.
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_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Match elements containing this text (case-insensitive) | |
| device | No | Device serial | |
| pollMs | No | Polling interval in ms (200-5000, default 500) | |
| condition | No | Wait for element to 'appear' (default) or 'disappear' | appear |
| timeoutMs | No | Maximum wait time in ms (1s-60s, default 10s) | |
| resourceId | No | Match elements with this resource-id (partial match) | |
| contentDesc | No | Match elements with this content-description (partial, case-insensitive) |