evaluate
Run JavaScript in the active browser tab and return a JSON-serializable result, enabling custom page data extraction or interaction when snapshot/query tools are insufficient.
Instructions
Run JavaScript in the page and return the JSON-serializable result. Powerful; prefer snapshot/query when possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| script | Yes | JS expression or statements; use "return x" for a value |