tap
Simulate screen taps at specified coordinates to interact with Android device interfaces for testing and automation workflows.
Instructions
Tap at screen coordinates (x, y)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| device_serial | No |
Implementation Reference
- src/adb_mcp_server/server.py:393-397 (handler)The core handler function for the 'tap' MCP tool. Executes an ADB shell input tap command at the specified screen coordinates (x, y). Supports optional device_serial for multi-device setups.@mcp.tool() def tap(x: int, y: int, device_serial: str | None = None) -> str: """Tap at screen coordinates (x, y)""" return run_adb(["shell", "input", "tap", str(x), str(y)], device_serial)