spider_browser_evaluate
Execute JavaScript in the browser page with DOM access to extract data and perform advanced interactions. Ideal for actions not covered by other browser tools.
Instructions
Execute JavaScript in the browser page and return the result. The expression is evaluated in the page context with access to the DOM. Use for advanced interactions, data extraction, or anything not covered by other browser tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JavaScript expression to evaluate in the page context. Use a function wrapper for multi-line code: (function() { ... })() | |
| session_id | Yes | Session ID from spider_browser_open |