Tap annotated element
tap_elementTaps a UI element by its number from the latest annotated screenshot, avoiding coordinate calculations. Re-capture after UI changes to keep numbers valid.
Instructions
Tap element #N from the most recent screenshot { annotate: true } capture — no coordinate math needed. The mapping is exact even if your client displays the image scaled. Re-capture after the UI changes: element numbers go stale.
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>"
},
"name": "tap_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial (defaults to session or the only device) | |
| element | Yes | Element number from the annotated screenshot |