execute_js
Run arbitrary JavaScript in a live browser tab under one total deadline. Falls back to direct runtime evaluation when SPA/CSP bridges fail, so scripts execute without retargeting.
Instructions
Execute arbitrary JS in the requested real-browser tab under one total deadline. BTAP pins every monitor/retry/result roundtrip to an explicit session, uses the service-worker/page route first, and falls back to directed Runtime.evaluate on SPA/CSP bridge failures without retargeting. Use wait_for/wait_for_url instead of setTimeout or sleep Promises; BTAP retries only proven-undelivered work, never an acknowledged script whose side effects may already have run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| timeout | No | ||
| no_monitor | No | ||
| session_id | No | ||
| dialog_policy | No | dismiss |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||