AppiumTransport.evaluate method
AppiumTransport › evaluate
Evaluates a JavaScript expression inside Obsidian Mobile's WebView.Switches to the
WEBVIEW_md.obsidian context, executes the expression, and returns the result string.Signature:
evaluate(expression: string, _options: TransportEvalOptions): Promise<string>Parameters:
| Parameter | Type | Description |
|---|---|---|
| expression | string | The JavaScript expression to evaluate. |
| _options | TransportEvalOptions | Evaluation options (cwd is not used on mobile — vault targeting is via localStorage). |