tap_element
Taps the center of a specified element from the latest screen observation, enabling AI agents to activate Android UI controls by index while rejecting stale snapshots.
Instructions
Tap the center of an element from the latest observe.
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": {
"index": "<index>"
},
"name": "tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | [n] index from the latest observe | |
| confirm | No | true only if the user asked for this buy/pay/send/delete action | |
| snapshot | No | snapshot id from that observe. Rejects the tap if the screen was re-read since |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |