browser_js
Execute JavaScript in the current or specified browser tab to read or modify page content. Set full mode to return large results completely.
Instructions
Execute JavaScript in the current page context.
Args: code: JavaScript code to run (e.g. "document.title" or "document.querySelectorAll('a').length") tab_id: Optional tab to target. Defaults to active tab. full: Results are capped at 8 MB (50 KB on extensions older than 2.1.0). full=True runs the code once and reads the result back in slices, so any size comes back complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| full | No | ||
| tab_id | No |