execute_javascript
Execute JavaScript in the active browser tab to extract web page data, returning results directly. Faster and more accurate than screenshot OCR.
Instructions
Run JavaScript in the active browser tab. Much faster than screenshot+OCR for web pages. Returns the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code to execute | |
| browser | No | 'safari' or 'chrome' (defaults to Safari) |