phone_tap_element
Tap a UI element by its index from a phone_elements snapshot, safely guarding against stale references so a changed screen refuses the tap instead of hitting a different control.
Instructions
Tap one element by its zero-based index and snapshot token from the SAME phone_elements response. The daemon re-reads the tree; a small change on the same screen (clock, badge, a flipped switch) still finds the row by kind, identifier, label and enclosing rows, while another page, a new alert, or look-alikes it cannot tell apart refuse with nothing sent, so a stale element reference cannot silently tap a different control. Use identifier/kind/label/state fields to choose the index. Snapshot refs are ephemeral: never persist them in a flow.
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": {
"element": "<element>",
"snapshot": "<snapshot>"
},
"name": "phone_tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element | Yes | Zero-based element index from `phone_elements`. | |
| observe | No | Default true: reply with the settled screen (delta since your last look, or the full tree); false = bare action, fastest. | |
| instance | No | daemon instance name | |
| snapshot | Yes | Snapshot token from the same `phone_elements` response. |