Swipe Screen
android_swipePerform a swipe gesture on an Android device screen in a specified direction, with optional start coordinates, distance, and duration.
Instructions
Swipe in a direction. Starts from screen center by default, or from given x,y coordinates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Start X coordinate. Defaults to screen center. | |
| y | No | Start Y coordinate. Defaults to screen center. | |
| 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). | |
| distance | No | Swipe distance in pixels. Defaults to ~55% of screen for center swipes, 30% for coordinate swipes. | |
| duration | No | Swipe duration in milliseconds. Defaults to 500. | |
| direction | Yes | Swipe direction |