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
func (d *Device) Context(ctx context.Context, name string) (string, error)
Context switches context, or reads the current one when name is "".
Examples
Drive the web content of a WebView
if _, err := dev.Context(ctx, "WEBVIEW_com.example.shop"); err != nil {
return err
}
Go back to the native app
if _, err := dev.Context(ctx, "NATIVE_APP"); err != nil {
return err
}
On a device

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