device_swipe
Execute a swipe from start to end coordinates on a mobile device, enabling custom gestures and precise swipe control using physical screen pixels.
Instructions
⚠️ Low-level: Swipe from (x1,y1) to (x2,y2). Use this for custom gestures or when you need precise swipe control. Use coordinates from the physical screenshot (originalWidth/originalHeight). On Android, this tool automatically scales coordinates if a display override (logical resolution) is detected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X coordinate in original screen pixels | |
| x2 | Yes | End X coordinate in original screen pixels | |
| y1 | Yes | Start Y coordinate in original screen pixels | |
| y2 | Yes | End Y coordinate in original screen pixels | |
| deviceId | Yes | ||
| duration | No | Optional duration in ms. Default is 300. | |
| platform | Yes |