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​

public IList<string> Contexts()

The automatable contexts: the native shell plus any WebViews.

Examples​

List the native app and its WebViews​

foreach (var context in device.Contexts())
Console.WriteLine(context);

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