swipe
Simulates a touch gesture from one screen point to another; set duration ≥1000ms to perform a drag.
Instructions
Swipe/drag from one screen point to another. A slow swipe (duration >= 1000) acts like a drag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_x | Yes | ||
| to_y | Yes | ||
| from_x | Yes | ||
| from_y | Yes | ||
| serial | No | adb serial; optional when exactly one device is connected | |
| observe | No | What to return after the action: changes (default: only what changed since you last saw the screen, full tree on a new screen), ui (full tree), screenshot, both (tree + screenshot), none | changes |
| settle_ms | No | Wait before observing | |
| duration_ms | No |