Skip to main content
Glama

camofox_evaluate_js

Run JavaScript expressions in browser page context to extract hidden data, inspect element properties, read computed styles, or manipulate DOM, all invisible to page scripts for anti-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 to be configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdYesTab ID from create_tab
expressionYesJavaScript expression to evaluate (e.g. 'document.title', 'document.querySelectorAll("img").length', 'document.querySelector(".modal").scrollHeight')
timeoutNoExecution timeout in ms (max 30000)
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It mentions that execution is invisible to page scripts (anti-detection) and requires an API key. However, it does not disclose side effects of DOM manipulation, error handling, or the return format of the evaluation result, leaving important behavioral details unaddressed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, consisting of two clear sentences and a brief list of use cases. It is front-loaded with the main action and avoids unnecessary words, though the use cases could be integrated more efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (JavaScript evaluation) and the absence of an output schema, the description should explain return values, error handling, and support for async expressions. It does not mention that results are serialized or that 'expression' must be synchronous, leaving critical gaps for an agent to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage with descriptions for all parameters, so the baseline is 3. The description does not add further meaning beyond the schema; it merely lists use cases that align with the 'expression' parameter but does not elaborate on the parameters themselves.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool executes JavaScript in the browser page context, specifying it runs in an isolated scope, which distinguishes it from sibling tools that perform other actions like clicking or taking snapshots. The list of use cases further clarifies its purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit use cases ('extracting data not visible...', 'checking element properties', etc.) and notes the prerequisite (CAMOFOX_API_KEY). However, it does not explicitly state when not to use it or provide alternatives among sibling tools, which is a minor gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/redf0x1/camofox-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server