Skip to main content

swipe

This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET

Swipe the screen. These call app_swipe.

swipe​

def swipe(direction: str | None=None, coordinates: tuple[int, int, int, int] | None=None, duration_ms: int=300, target: str | None=None) -> None

Swipe by direction ("up", "down", "left", "right") or exact points.

With a target and a direction, swipe across that element, 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.

Examples​

Swipe up, to scroll the page down​

device.swipe("up")

The same call from the command line, mobium swipe up, printed on an Android 15 emulator:

swiped up: (540,1584) to (540,679)
BeforeAfter
Before: mobium swipe up on an Android 15 emulatorAfter: mobium swipe up on an Android 15 emulator

mobium swipe up on an Android 15 emulator