Skip to main content

Context

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

Switch between the native shell and a WebView, or report the current context when called with no argument. These call app_context.

Context​

public string Context(string name)

Switches context, or reads the current one when name is null.

Examples​

Drive the web content of a WebView​

device.Context("WEBVIEW_com.example.shop");

Go back to the native app​

device.Context("NATIVE_APP");

On a device​

mobium context WEBVIEW_dev.mobium.mobiumapp on an Android 15 emulator

mobium context WEBVIEW_dev.mobium.mobiumapp on an Android 15 emulator