eval
Execute JavaScript code in a running Chrome/Chromium tab via CDP to automate browser tasks and extract data.
Instructions
Execute JavaScript
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| timeout | No |
Execute JavaScript code in a running Chrome/Chromium tab via CDP to automate browser tasks and extract data.
Execute JavaScript
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| timeout | No |
Changes observed during successful MCP inspections.
v4.3.0Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It says only 'Execute JavaScript' and omits execution context, permissions, side effects, timeout behavior, security implications, and return behavior. For a code-execution tool, this is a severe transparency gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely short at two words, which is concise but not appropriately informative. This is under-specification rather than useful brevity, and it does not front-load any operational or safety context.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has no annotations, no output schema, and 0% parameter description coverage. The description supplies none of the missing context an agent would need for correct invocation, such as execution environment, timeout semantics, or safety constraints. It is inadequate for a code-execution tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and there are two parameters (script and timeout). The description does not explain either parameter, does not clarify that 'script' is required, and does not describe what 'timeout' controls. It fails to compensate for the undocumented schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific action and resource, 'Execute JavaScript', so an agent can infer it runs JavaScript. However, it gives no execution context (browser page, Node, sandbox) and does not distinguish itself from the large set of browser automation siblings. This makes the purpose minimally adequate but still vague about scope.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description contains no guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. It does not indicate whether it is for browser-context scripting, automation steps, or general JavaScript evaluation. This is a clear absence of usage guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.