evaluate
Execute arbitrary JavaScript in the current page and retrieve its return value for browser automation and scraping.
Instructions
Evaluate a JavaScript expression in the page context and return the result. Equivalent to execute_script. This method can run any arbitrary JavaScript on any site, so take any necessary precautions to prevent AI harnesses from running scripts that you don't want them to run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes |