Tap screen
phone_tapTap an Android screen by pixel coordinates or by a UI element captured in the last observation. Optionally long-press and return the resulting screen.
Instructions
Tap by pixel coordinates (x,y) or by an element from the last phone_observe (index, text, resourceId, contentDesc). Optional durationMs performs a long-press. Returns the resulting screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| text | No | Match element text or content-desc | |
| index | No | Element index from the last phone_observe list | |
| observe | No | Re-dump the UI after the action (default true) | |
| settleMs | No | Wait before re-observing, milliseconds | |
| className | No | Class name substring, e.g. EditText | |
| durationMs | No | Long-press duration | |
| resourceId | No | Android resource-id (full or short) | |
| contentDesc | No | content-desc exact match | |
| packageName | No | Owning package name | |
| textContains | No | ||
| includeScreenshot | No | Include a PNG screenshot in the response |