browser_run_code_unsafe
Run arbitrary JavaScript in a page context. Use isolated world for stealth or main world to access page-defined globals, making scripts interact with anti-bot-protected sites.
Instructions
Execute arbitrary JavaScript in page context. Prefer browser_evaluate when possible. Runs in the isolated stealth world by default; set world:'main' to run in the page's real world (page-defined window globals visible/callable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| world | No | Execution world. 'isolated' (default) = stealth; 'main' = page's real world, page globals visible/callable. | |
| script | Yes |