Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

get_scope_variables

Retrieve variables from a selected call frame scope during Chrome DevTools debugging; specify call frame and scope indexes to inspect local or parent scope values.

Instructions

Get variables in a scope of a call frame.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_scope_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeIndexNoScope index in the scope chain. Default: 0 (local scope)
callFrameIndexNoCall frame index (0 = top). Default: 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden, yet it says nothing about the required debugger state, whether it errors when not paused, or what shape of data comes back. For a state-dependent introspection call, that is a meaningful omission.

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?

It is a single well-formed sentence with no filler or redundancy, but its brevity borders on under-specification for a debugger-state tool rather than true economy.

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?

With no annotations, no output schema, and a state-dependent operation, the description should at minimum state the paused-debugger prerequisite and indicate what a scope index refers to relative to the frame chain. It leaves both to inference, which is thin for the tool's complexity.

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 coverage is 100% and both parameters already carry descriptions including their defaults (0 = local scope, 0 = top frame), so the description adds no parameter meaning. Baseline 3 applies because the schema does all the work.

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?

The description pairs a specific verb ("Get") with a specific resource ("variables in a scope of a call frame"), so an agent can tell this is a debugger-state introspection tool rather than a generic property reader. However, it offers no differentiation from nearby siblings such as get_properties or get_attributes, which could plausibly return variable-like data.

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 guidance on when to call this versus get_properties, get_call_frames, or get_attributes, and no stated precondition such as the target being paused. The agent must infer that a call frame and scope chain must already exist before this is meaningful.

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