browser_execute_js
Execute JavaScript in a live browser session and capture results along with DOM changes. Useful for automating web page interactions and extracting dynamic data.
Instructions
Execute JavaScript in the browser and capture results plus DOM changes.
Args: script: JavaScript code to execute (or JSON command for CDP operations). switch_tab_id: Switch to this tab before executing. no_monitor: Skip DOM change monitoring (faster, less info).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| no_monitor | No | ||
| switch_tab_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |