Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

get_document

Retrieve the root DOM node to inspect page structure, with optional depth limits and iframe or shadow root piercing for complete document analysis.

Instructions

Get the root DOM node.

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_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoMaximum depth to return. -1 for full tree. Default: 2
pierceNoPierce through iframes and shadow roots. Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

C2.5/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 and does almost none of it. It doesn't say whether the result is a live node reference, a serialized subtree, or an identifier, nor what happens with iframes/shadow roots or whether the call is read-only and side-effect free.

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?

It is a single front-loaded sentence with zero waste, but that brevity crosses into under-specification rather than economy. There is no structure to speak of because there is only one clause.

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 and no output schema, the description is the only place return-shape information could live, and it says nothing about what a "DOM node" response looks like. For a tool whose output is the entire point, that leaves a significant hole.

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%, with both `depth` and `pierce` documented including defaults and the -1 sentinel, so the baseline is 3. The description adds nothing about how depth interacts with pierce or what truncation looks like, but it isn't required to.

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

Purpose3/5

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

"Get the root DOM node" states a verb and a resource, but "root" is ambiguous (document element? html node? a node handle?) and it doesn't distinguish this from siblings like get_outer_html or capture_snapshot. An agent knows roughly what domain it's in but not exactly what it receives.

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 when-to-use guidance, no mention of alternatives such as get_outer_html for serialized markup or capture_snapshot for a full tree, and no prerequisites. The agent must infer usage entirely from the name.

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