browser_evaluate
Run policy-gated read-only JavaScript in a browser tab when standard extraction methods fail. Use as a fallback for required facts.
Instructions
Run policy-gated read-only JavaScript in a tab only when browser_extract or browser_observe cannot return the required fact. For visible page text, labels, controls, or a region owned by aria-controls, use browser_extract instead; for computed styles, colors, fonts, sizes, icons or backgrounds, browser_extract read=design (the page, or one component with target_ref) or read=inspect (one element's box and styles).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arg | No | Optional argument passed to the function. | |
| tab_id | Yes | ||
| function | Yes | JS function/expression (aliases: expression, code, js, script). |