previewapk_tap
Taps an Android screen by resolution-independent coordinates or by a stable element reference from a snapshot, failing safely if the UI changed to avoid wrong taps.
Instructions
Tap the screen. Either coordinates (0..1 fractions of the screen, resolution-independent) or a ref from previewapk_observe: pass ref + snapshot_id and the server re-finds that exact element on the current screen first — if it moved or changed, the call fails with stale_snapshot instead of tapping the wrong thing. Requires an agent-driven session.
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": "previewapk_tap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| ref | No | element number from a previewapk_observe snapshot | |
| device | No | ||
| snapshot_id | No | the snapshot_id that ref belongs to |