eval
This tool on every surface: CLI · MCP · Python · JavaScript · Go · Java · .NET
Run a JavaScript expression in the current WebView and return its value as a string. These call app_eval.
eval
eval(expression: string): Promise<string>
Examples
Read the page title in a WebView
const title = await device.eval('document.title')
On a device

mobium eval document.title on an Android 15 emulator