Skip to main content

app_rotate

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

Turn two fingers about an element or the middle of the screen. Positive degrees are clockwise. It reports that the gesture was delivered and nothing more, and this is harder to confirm than a zoom: nothing in either accessibility hierarchy reports a rotation, and there is no WebView property to ask either — a page has to compute the angle from raw touch events itself. The fingers are stepped around the arc rather than moved straight to the end, because a straight move is a chord and the platform reads it as a pinch with some rotation attached. Discards the refs from the last app_map.

Changes the device, the app or the session: readOnlyHint is false.

Arguments​

NameTypeRequiredWhat it is
degreesnumberHow far to turn, positive clockwise. Defaults to 90.
devicestringDevice serial to target, e.g. "emulator-5554". Omit when only one device is running.
driverstring: uiautomator2, uiautomator, wdaDriver to use: "uiautomator2" (default for Android; fast, installs a server APK on first use), "uiautomator" (Android, installs nothing, slower, cannot type), or "wda" (WebDriverAgent: iOS simulators and iPhones).
radiusintegerHow far each finger sits from the center, in device pixels. Defaults to 200.
targetstringA ref or locator to turn about. Defaults to the middle of the screen.

Examples​

Each is the arguments of a tools/call request; the first is shown whole.

Turn a map a quarter turn clockwise​

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "app_rotate",
"arguments": {
"degrees": 90,
"target": "@e2"
}
}
}

On a device​

BeforeAfter
Before: mobium rotate 90 on an Android 15 emulatorAfter: mobium rotate 90 on an Android 15 emulator

mobium rotate 90 on an Android 15 emulator