Skip to main content

Zoom

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

Pinch two fingers apart or together, about an element or the middle of the screen. These call app_zoom.

Zoom​

func (d *Device) Zoom(ctx context.Context, in bool, target string) error

Zoom pinches two fingers apart, or together when in is false, about an element or the middle of the screen.

It reports that the gesture was delivered and nothing more: neither platform exposes a zoom level in the accessibility hierarchy, so confirming a zoom means asking whatever was zoomed. A WebView can answer with visualViewport.scale through Eval.

Examples​

Pinch out, to zoom in​

// true pinches out, which zooms in; "" is the middle of the screen.
if err := dev.Zoom(ctx, true, ""); err != nil {
return err
}

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

pinched in about the screen at (540, 1200), fingers 160 to 640px apart — the gesture was delivered, which is all this can confirm: neither platform reports a zoom level in the hierarchy, so ask the thing you zoomed (a WebView knows its own visualViewport.scale)
BeforeAfter
Before: mobium zoom in on an Android 15 emulatorAfter: mobium zoom in on an Android 15 emulator

mobium zoom in on an Android 15 emulator