camofox_evaluate_js
Execute JavaScript in a live browser page to extract hidden data, inspect element properties, read computed styles, and manipulate the DOM without detection.
Instructions
Execute JavaScript in the browser page context. Runs in isolated scope (invisible to page scripts — safe for anti-detection). Use for: extracting data not visible in accessibility snapshot, checking element properties, reading computed styles, manipulating DOM elements. Requires CAMOFOX_API_KEY only when browser-server authentication is enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID from create_tab | |
| timeout | No | Execution timeout in ms (max 30000) | |
| expression | Yes | JavaScript expression to evaluate (e.g. 'document.title', 'document.querySelectorAll("img").length', 'document.querySelector(".modal").scrollHeight') |