eval
Execute JavaScript on the current page's DOM via QuickJS runtime, returning JSON-stringified results. Use for advanced operations when CSS selectors cannot express your needs.
Instructions
Run arbitrary JavaScript in the embedded QuickJS runtime against the current page's parsed DOM. Returns the JSON-stringified result. Power tool — prefer query/text/blockmap when the CSS selector engine can express what you need. Canonical param is code; raw JSON-RPC also accepts script or expression aliases and errors if no code-like param is present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JS code; the value of the last expression is returned |