Wait for Android UI
mobile_ui_waitWait for a matching Android accessibility node on a specified device and display; poll until it appears or the timeout expires, then proceed with automation.
Instructions
Poll until a matching accessibility node appears or the bounded timeout expires.
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": {
"serial": "<serial>",
"displayId": "<displayId>"
},
"name": "mobile_ui_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| exact | No | ||
| pollMs | No | ||
| serial | Yes | Exact ADB serial from mobile_devices_list; never inferred when multiple devices exist | |
| displayId | Yes | Android framework logical display ID, not a SurfaceFlinger physical ID | |
| timeoutMs | No | ||
| resourceId | No | ||
| contentDescription | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | ||
| matches | Yes | ||
| attempts | Yes | ||
| elapsedMs | Yes |