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
public String eval(String expression)
Runs a JavaScript expression in the current WebView; objects come back as JSON.
@param expression a JavaScript expression @return the expression's value; an object comes back as JSON
Examples
Read the page title in a WebView
String title = device.eval("document.title");
On a device

mobium eval document.title on an Android 15 emulator