Skip to main content
Glama

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
NameRequiredDescriptionDefault
xYes
yYes
device_serialNo

Implementation Reference

  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rahulkr/r_adb_mcp_server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server