Skip to main content

app_screenshot

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

Capture the device screen as a PNG. Returns the image to the caller, and also writes it to disk when path is given.

Read-only: readOnlyHint is true.

Arguments​

NameTypeRequiredWhat it is
devicestringDevice serial to target, e.g. "emulator-5554". Omit when only one device is running.
driverstring: uiautomator2, uiautomator, wdaDriver to use: "uiautomator2" (default for Android; fast, installs a server APK on first use), "uiautomator" (Android, installs nothing, slower, cannot type), or "wda" (WebDriverAgent: iOS simulators and iPhones).
pathstringOptional file path to save the PNG to.

Examples​

Each is the arguments of a tools/call request; the first is shown whole.

Save a screenshot​

{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "app_screenshot",
"arguments": {
"path": "screen.png"
}
}
}

On an Android 15 emulator the answer's text was:

saved …/screen.png (153875 bytes)

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

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