Skip to main content

screen

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

Read the screen, or make an Android device pretend to be a different one, and optionally report what is wrong with the layout at that size. These call app_screen.

screen​

screen(profile?: string, options?: { inspect?: boolean }): Promise<Data>

Examples​

Read the screen: size, density, and the profiles it can pretend to be​

const screen = await device.screen()
console.log(screen)

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

1080x2400px @420dpi = 411x914dp (sw411dp)

Pretend to be a small phone, and back​

await device.screen('small-phone')
// ... run the flow ...
await device.screen('reset')

On a device​

mobium screen small-phone on an Android 15 emulator

mobium screen small-phone on an Android 15 emulator