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. These call app_rotate.
Rotate
func (d *Device) Rotate(ctx context.Context, degrees float64, target string) error
Rotate turns two fingers about an element or the middle of the screen, positive degrees clockwise.
Like Zoom it reports that the gesture was delivered and nothing more, and this one is harder still to confirm: nothing in either hierarchy reports a rotation, and there is no WebView property to ask either.
Examples
Turn a map a quarter turn clockwise
if err := dev.Rotate(ctx, 90, "@e2"); err != nil {
return err
}
On a device
| Before | After |
|---|---|
![]() | ![]() |
mobium rotate 90 on an Android 15 emulator

