wait_for_element
Polls the mobile UI tree until an element matching text, type, resource ID, or clickable state appears, then returns matches with optional UI tree or screenshot.
Instructions
Poll the UI tree until an element matching the criteria appears on screen. Returns matched elements and optionally the full UI tree or 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_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| observe | No | Additional observation after element found. Default: none | |
| platform | No | Target platform. Inferred if omitted. | |
| clickable | No | If set, only match elements with this clickable state | |
| device_id | No | Device ID. Omit for the connected device. | |
| text_exact | No | Wait for element whose text matches exactly | |
| timeout_ms | No | Maximum time to wait in ms. Default: 30000 — app start, first network-backed list load and login flows routinely exceed 10s | |
| resource_id | No | Wait for element whose resource_id contains this substring (case-insensitive) | |
| text_contains | No | Wait for element whose text contains this substring (case-insensitive) | |
| type_contains | No | Filter by element type containing this substring (case-insensitive) | |
| poll_interval_ms | No | Polling interval in ms. Default: 500 |