gesture-swipe
Execute swipe or drag gestures on iOS simulator or Android emulator. Use to scroll lists, dismiss modals, drag elements, or navigate between pages.
Instructions
Execute a smooth swipe / drag touch gesture between two points on the device (iOS simulator or Android emulator). All from/to positions are normalized 0.0–1.0 (fractions of screen width/height, not pixels), same as gesture-tap. Generates interpolated Move events for a natural feel (~60fps). Swipe up (fromY > toY) to scroll content down. Use when you need to scroll a list, dismiss a modal, drag an element, or navigate between pages. Not supported on Chromium — use gesture-scroll there instead. Returns { swiped: true, timestampMs }. Fails if the simulator-server / emulator backend is not reachable for the given device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toX | Yes | End x: normalized 0.0–1.0 (not pixels; same as tap) | |
| toY | Yes | End y: normalized 0.0–1.0 (not pixels; same as tap) | |
| udid | Yes | Target device id from `list-devices` (iOS UDID or Android serial). | |
| fromX | Yes | Start x: normalized 0.0–1.0 (not pixels; same as tap) | |
| fromY | Yes | Start y: normalized 0.0–1.0 (not pixels; same as tap) | |
| durationMs | No | Total gesture duration in milliseconds (default 300) |