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.
@param name a context from contexts(), or null to read the current one
@return the context now in force
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