scout_evaluate
Execute JavaScript in the current page to read its state, interact with elements blocked by shadow DOM overlays, or perform any DOM operation not covered by other tools.
Instructions
Execute JavaScript in the current page and return the result. Use for: reading page state, clicking elements blocked by shadow DOM overlays, interacting with Web Components, or any DOM operation not covered by other tools. The code runs in the page context with full DOM access. Returns the serialized result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code to execute in the page. Must be a valid expression or IIFE. The return value is serialized to JSON. |