wait_for_element
Wait for a UI element to appear on an Android device screen by polling every 500ms. Specify how to find the element and set a timeout to ensure automation scripts proceed only when elements are ready.
Instructions
Wait for a UI element to appear on screen. Polls every 500ms.
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": {
"by": "<by>",
"value": "<value>"
},
"name": "wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | How to find the element | |
| value | Yes | Value to match | |
| timeout_ms | No | Timeout in ms (default 10000) | |
| device_id | No | Device ID (optional if only one device) |