Reference
device_swipe
Swipe on the device screen. Use direction for simple scrolling, or x1/y1/x2/y2 for precise coordinate-based swipes (drag-to-reorder, bottom sheets). Pass exact: true for a precise unclamped gesture duration via the in-tree runner — needed for momentum-sensitive UIs like UIDatePicker wheels where a normalized/clamped duration causes overshoot. Requires an open session.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
direction | unknown | No | Simple directional swipe (delegates to scroll) | ||
x1 | unknown | No | Start X coordinate (use with y1, x2, y2 for precise swipes) | ||
y1 | number | No | Start Y coordinate | ||
x2 | number | No | End X coordinate | ||
y2 | number | No | End Y coordinate | ||
durationMs | unknown | No | min: 50, max: 10000, integer | ||
count | unknown | No | min: 1, max: 50, integer | Repeat swipe N times (incompatible with exact: true) | |
pattern | unknown | No | |||
exact | unknown | No |
device_swipe()