execute_js
Run JavaScript in the current page and get the returned value. Redacts secrets unless disabled; requires confirmation to prevent unsafe execution.
Instructions
Run JavaScript in the page and return its result. Use return for a value; secrets in output are redacted unless redact=false. DANGER: requires confirm=true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| redact | No | ||
| tab_id | No | ||
| confirm | No |