ui_wait_for_element
Wait for a UI element to appear on an Android device screen. Polls using text, class, resource ID, or content description until match or timeout.
Instructions
Wait for a UI element to appear on screen. Polls the UI until the element matches criteria or timeout is reached.
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": "ui_wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text content to search for | |
| serial | No | Device serial number | |
| className | No | Class name to match exactly | |
| timeoutMs | No | Maximum time to wait in milliseconds (default 15000) | |
| exactMatch | No | If true, text and contentDesc require exact matches | |
| resourceId | No | Resource ID to match exactly | |
| contentDesc | No | Content description to search for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | ||
| success | Yes |