Tap the screen
tapSimulates a tap at specific screen coordinates on an Android device to trigger UI actions. Reads pixel coordinates from the UI hierarchy or screen size, then verify the result with a screenshot.
Instructions
Tap a point on the device screen (input tap X Y). Coordinates are device pixels: read them from get_ui_hierarchy bounds or get_device_info screen_size, and screenshot after the tap to verify the result (screenshot → decide → act loop). If the display is off, wake it first with key_event WAKEUP — input events are dropped while the screen is off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X in device pixels (non-negative integer). | |
| y | Yes | Y in device pixels (non-negative integer). | |
| device | No | Device serial from list_devices; optional when exactly one device is connected. |