Skip to main content

mobium source

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

Print the raw hierarchy, as the device-side server sent it

The page source: the platform's own XML on a native screen, the page's current markup in a WebView context. map is what to act on; this is for when map leaves out the thing you need to see.

Password fields have their contents hidden, keeping the length. Geometry is in the platform's units — pixels on Android, points on iOS, where map, taps and screenshots are in pixels. --json says which, and the scale between them.

Usage​

mobium source [flags]

Examples​

Save the raw hierarchy​

mobium source > screen.xml

More, from mobium source --help​

mobium source > screen.xml
mobium source --json | jq -r .units

No screenshot: it reads the hierarchy, and nothing on the screen changes.

The tool​

source calls app_source; its arguments and what every client calls it are there.