tap_and_wait
Tap an Android UI element and wait for the interface to stabilize, returning the updated UI tree in a single operation to automate touch interactions.
Instructions
Tap element then wait for UI to settle and return the new UI tree. Combines tap + wait + get_ui_tree into a single fast operation.
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": "tap_and_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | How to find the element to tap | |
| value | Yes | Value to match | |
| wait_ms | No | Time to wait for UI to settle after tap (default 1000ms) | |
| device_id | No | Device ID (optional if only one device) |