eval_renderer
Execute JavaScript code within Electron app pages to interact with web content, extract data, or manipulate DOM elements using provided arguments.
Instructions
Evaluate JavaScript in the renderer (page) context. Pass a FUNCTION BODY — use return to yield a value. Example: return document.title. Supports async/await. Same contract as eval_main. Pass an arbitrary JSON-serializable arg to be available as the arg variable inside the body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | Yes | Function body. Use `return` to yield a value. `arg` is available as a local. | |
| arg | No | Arbitrary JSON-serializable value exposed as `arg` inside the body. Objects, arrays, primitives, and null all work. |