browser_evaluate
Execute JavaScript in the browser page context and return the result, enabling cookie, storage, form, or other session state changes during MCP scraping workflows.
Instructions
Execute JavaScript in the browser context and return the result. The script can change or delete the session's page state, such as cookies, storage and form data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript expression or function body to evaluate in the page context | |
| session_id | Yes | Session ID returned by browser_navigate |