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
context(name?: string): Promise<string>
Examples
Drive the web content of a WebView
await device.context('WEBVIEW_com.example.shop')
Go back to the native app
await device.context('NATIVE_APP')
On a device

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