Tap
tapTap any on-screen element or coordinates and get the resulting screen state immediately, removing the need for a separate inspect call.
Instructions
Tap an element (by id/text/resource_id/accessibility) or absolute coordinates. Returns the resulting screen state (act+observe) so you don't need a separate inspect call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Absolute x coordinate (alternative to a selector) | |
| y | No | Absolute y coordinate (alternative to a selector) | |
| id | No | Stable element id from inspect_screen | |
| ocr | No | Force OCR: locate `text` visually in the screenshot instead of the a11y tree (for off-tree / canvas / WebView elements). OCR is also used automatically when a text selector finds nothing in the tree. | |
| text | No | Match by visible text (case-insensitive substring) | |
| index | No | Pick the Nth match (0-based) when several match | |
| observe | No | What to return after the action: 'screen' = fresh compact hierarchy, 'diff' = only what changed since last inspect, 'screenshot' = PNG, 'none' = just confirm. | screen |
| device_id | Yes | Device id from list_devices (adb serial like 'emulator-5554', or an iOS simulator UDID) | |
| resource_id | No | Match by resource-id (Android) / identifier (iOS) | |
| accessibility | No | Match by accessibility label / content-desc |