wait_for_element
Polls Android UI until a queried element appears or disappears, with configurable timeout. Use after navigation or network calls to confirm screen state.
Instructions
Poll until an element matching the query appears (or disappears). Useful after navigation or network calls.
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": {
"query": "<query>"
},
"name": "wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gone | No | Wait for the element to disappear instead | |
| query | Yes | ||
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. | |
| timeout_seconds | No |