Skip to main content

contexts

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

List the automatable contexts on the device: the native shell plus any debuggable WebViews. These call app_contexts.

contexts​

def contexts() -> list[str]

Automatable contexts: the native shell plus any WebViews.

Examples​

List the native app and its WebViews​

for name in device.contexts():
print(name)

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

NATIVE_APP (current)
WEBVIEW_dev.mobium.mobiumapp — about:blank about:blank

mobium contexts on an Android 15 emulator

mobium contexts on an Android 15 emulator