Tap
adb_tapTap an Android device at (x,y) via ADB; choose logical screen coordinates or recent screenshot pixels, and optionally verify the tap changed activity or UI.
Instructions
Tap at (x, y). coords="screen" (default): coordinates from adb_ui_dump, the logical space input tap uses. coords="screenshot": coordinates off the last adb_screenshot for the SAME serial, rescaled; missing or older than 120s is refused. Rotation between screenshot and tap is not checked. verify="activity"|"ui" reports whether the tap changed anything; a failed verify never turns a performed tap into an error. To activate an element by its label, adb_find_and_tap does it in one call and also works on TV boxes without a touchscreen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X in pixels, in the space chosen by coords. | |
| y | Yes | Y in pixels, same space. | |
| coords | No | Coordinate space, default "screen". "screenshot" = pixels read off the last adb_screenshot image for this serial, rescaled automatically; refused if that screenshot is missing or older than 120s. | |
| serial | No | Device serial from adb_devices. Optional when exactly one device is connected. | |
| verify | No | Default "none". "activity" compares the resumed activity before/after. "ui" also hashes the UI dump (~2-4s); a clock or timer ticking on its own can make it report "changed". "unchanged" is reliable. |