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
def context(name: str | None=None) -> str
Switch context, or read the current one.
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