Swipe · SwipeOn · SwipePoints
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Swipe the screen. These call app_swipe.
Swipe
func (d *Device) Swipe(ctx context.Context, direction string) error
Swipe drags across the middle of the screen in a direction: "up", "down", "left" or "right". The finger moves that way, so "up" scrolls a page down.
SwipeOn
func (d *Device) SwipeOn(ctx context.Context, target, direction string) error
SwipeOn swipes across an element in a direction, after the checks a tap makes — part of the way, which reveals a list row's swipe actions without performing the first. Map again and tap the action you mean.
SwipePoints
func (d *Device) SwipePoints(ctx context.Context, x1, y1, x2, y2 int, duration time.Duration) error
SwipePoints drags between two points in device pixels.
Examples
Swipe up, to scroll the page down
if err := dev.Swipe(ctx, "up"); err != nil {
return err
}
The same call from the command line, mobium swipe up, printed on an Android 15 emulator:
swiped up: (540,1584) to (540,679)
| Before | After |
|---|---|
![]() | ![]() |
mobium swipe up on an Android 15 emulator

