Long Press
android_long_pressSimulate a long press gesture at specified pixel coordinates on an Android device, with configurable duration.
Instructions
Long-press the screen at x,y pixel coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X coordinate in pixels | |
| y | Yes | Y coordinate in pixels | |
| device | No | Device id (serial or host:port). Optional -- when omitted, uses ANDROID_MCP_DEVICE env or auto-selects the connected device (physical devices preferred over emulators). | |
| duration | No | Press duration in milliseconds. Defaults to 500. |