evaluate
Run JavaScript code in the active browser tab and retrieve the result, enabling page data extraction and dynamic interaction.
Instructions
Run JavaScript in the page and return its value. Your snippet should return something, e.g. return document.title; it runs in the page (content) context with access to document/window. LOCKED by default (powerful) — enable with enable_evaluate first. Best on the Marionette backend; some Floorp builds don't expose it. Active tab unless browserId given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript to run; use `return` to produce a value. | |
| browserId | No | Target tab. Defaults to active. | |
| maxChars | No | Truncate the stringified result. Default 25000. |