swipe
Perform touch drags to scroll screens or pull down notifications by specifying start and end coordinates.
Instructions
Swipe from (x1,y1) to (x2,y2). Use for scrolling, pulling down notifications, etc. Common patterns: scroll down = swipe(dev, 540, 1400, 540, 600) scroll up = swipe(dev, 540, 600, 540, 1400)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| device | Yes | ||
| duration_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |