Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

evaluate_on_frame

Evaluate a JavaScript expression within a specific call frame to inspect variables and debug stack state at breakpoints.

Instructions

Evaluate an expression in the context of a call frame.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "expression": "<expression>"
    },
    "name": "evaluate_on_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
expressionYesJavaScript expression to evaluate
returnByValueNoReturn result by value (for serializable results). Default: false
callFrameIndexNoCall frame index (0 = top). Default: 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does not mention that evaluation requires a paused debugger, that arbitrary JavaScript can have side effects or throw, how the result is represented (remote object vs. by-value), or what callFrameIndex out-of-range does.

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

Conciseness3/5

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

A single short sentence with no filler, but it is thin rather than efficient: the brevity comes at the cost of the prerequisites and result semantics an agent needs. Nothing is redundant, but much is unsaid.

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?

For a code-evaluation tool with zero annotations and no output schema, the description should at minimum state the paused-debugger prerequisite and the shape of the result. Neither is present, leaving the agent to guess at the most consequential behavior.

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?

Schema description coverage is 100%, so all three parameters (expression, returnByValue, callFrameIndex) are already documented in the schema with types and defaults. The description adds no syntax, scoping, or semantic detail beyond that, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb (evaluate) and resource (expression) plus the evaluation scope (a call frame), which distinguishes it from the plain sibling 'evaluate' by implication. However, it never explicitly contrasts the two, so the agent must infer the distinction from the phrase 'in the context of a call frame.'

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

Usage Guidelines2/5

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

There is no explicit when-to-use, when-not-to-use, or alternative guidance. The phrase 'in the context of a call frame' hints that a paused frame is required, but the description never states the prerequisite (debugger paused) or tells the agent to prefer 'evaluate' when no frame context is needed.

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

Deploy Server

Other Tools