screenshot
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Capture the device screen as a PNG. These call app_screenshot.
screenshot
screenshot(path?: string): Promise<Uint8Array>
The PNG's bytes (a Node Buffer, which is a Uint8Array). With a path, also written there.
Examples
Save a screenshot
await device.screenshot('screen.png')
The same call from the command line, mobium screenshot -o screen.png, printed on an Android 15 emulator:
saved …/screen.png (153875 bytes)

mobium screenshot -o screen.png on an Android 15 emulator