Skip to main content
Glama
BitePro

chrome-debugger-mcp

by BitePro

getScopeVariables

Inspect local, closure, and module scope variables at the currently paused JavaScript call frame. Use frameIndex to view parent frames.

Instructions

[STEP 6a] Read all scope variables (local, closure, module) at the currently paused call frame. Call this immediately after waitForSpecificPause or waitForPause returns. Results are grouped by scope type; global scope is skipped. Use frameIndex=1, 2, ... to inspect variables in parent call frames up the stack.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameIndexNoCall frame index (default 0, the topmost frame)
Behavior5/5

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

With no annotations, the description carries full transparency. It details the behavior (returns scope variables grouped by type, skips global scope) and the expected context (paused state). No destructive side effects are implied, and the read-only nature is evident.

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

Conciseness5/5

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

The description is concise and well-structured, covering purpose, timing, result formatting, and parameter usage in a few sentences. Every sentence provides valuable information without redundancy.

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

Completeness5/5

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

The description is complete given the absence of an output schema. It explains what the tool returns (scope variables grouped by type) and provides necessary context (paused state, frame navigation). No critical gaps are apparent.

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

Parameters5/5

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

The only parameter, frameIndex, is fully described in both the schema and the tool description. The description adds meaningful detail on how to use it (default 0 for topmost, increment to go up the stack), satisfying the parameter semantics requirement.

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's purpose: reading all scope variables (local, closure, module) at the currently paused call frame. It is distinct from sibling tools, which focus on control (e.g., stepping, pausing) rather than inspection.

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

Usage Guidelines5/5

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

The description explicitly instructs when to call the tool ('immediately after waitForSpecificPause or waitForPause returns') and explains how to use frameIndex for parent frames. This provides clear, actionable usage guidance beyond the schema.

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/BitePro/chrome-debugger-mcp'

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