swipe
Drag a finger in a straight line between screen coordinates to perform gestures that scrolling cannot cover, such as moving sliders, flicking cards aside, pull-to-refresh, or panning maps.
Instructions
Drag a finger in a straight line from (x1, y1) to (x2, y2), in screen pixels. Use it for gestures scroll doesn't cover: moving a slider, swiping a card or a message aside, pulling down to refresh, dragging on a map. A very short swipe counts as a tap. Returns "Swiped"; call read_screen to see the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X in screen pixels | |
| x2 | Yes | End X in screen pixels | |
| y1 | Yes | Start Y in screen pixels | |
| y2 | Yes | End Y in screen pixels | |
| duration_ms | No | How long the drag takes, 50 to 3000 ms (default 300); slower is more like dragging, faster like flinging |