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). Requires an open session.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
direction | `enum: up | down | left | right` | No |
x1 | number | 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 | number | No | min: 50, max: 10000, integer | Swipe duration in ms (slower = more precise, default ~300) | |
count | number | No | min: 1, max: 50, integer | Repeat swipe N times | |
pattern | `enum: one-way | ping-pong` | No |
device_swipe()