browser_eval
Run JavaScript code in the live browser page and return the result, enabling custom actions not covered by dedicated tools.
Instructions
Run JavaScript in the page and return the result. Disabled under hardened mode, which is the default; the operator enables it by setting UBA_STRICT_SECRETS=0 in the server environment. On Firefox the code runs in the content-script sandbox; on Chrome it runs in the page's own realm, where the page can observe it and its CSP applies. Use only when no dedicated tool fits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JS body; use `return value;` to return data. |