Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

set_dom_breakpoint

Pause JavaScript execution when a specified DOM node undergoes subtree changes, attribute updates, or removal, using a node ID and mutation type to debug DOM behavior.

Instructions

Set a breakpoint on DOM mutations (subtree changes, attribute changes, or node removal).

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": {
      "nodeId": "<nodeId>",
      "type": "<type>"
    },
    "name": "set_dom_breakpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesType of mutation to break on
nodeIdYesNode ID from querySelector

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden. It says what is set but not what happens behaviorally: whether execution actually pauses on the mutation, whether the breakpoint persists across navigations, whether dom_enable/debugger_enable must be called first, or how to tear it down. Those are material gaps for a debugger-control tool.

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?

A single front-loaded sentence with the scope in a parenthetical; no filler, no restatement of the tool name, nothing that could be cut.

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

Completeness3/5

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

For a simple two-parameter tool with full schema coverage and no output schema, the definition covers the core action adequately. It is still thin on debugger-state prerequisites and lifecycle (persistence, pairing with remove_dom_breakpoint), which an agent needs before invoking it in a session.

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% and the enum values are self-describing, so the schema does the heavy lifting. The description's parenthetical roughly restates the enum members and adds no format, ID-source, or default details beyond what the schema already states.

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 ('Set') and resource ('breakpoint on DOM mutations') and enumerates the three mutation categories, which distinguishes it from set_breakpoint, set_event_breakpoint, and set_xhr_breakpoint. It stops short of naming any sibling explicitly, so a reader must infer the contrast from the parenthetical.

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

Usage Guidelines3/5

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

Usage is implied by the parenthetical scope ('subtree changes, attribute changes, or node removal'), which tells the agent what kinds of pauses this covers. There is no explicit when-to-use versus the other breakpoint-setting tools, and no stated prerequisites such as the DOM domain needing to be enabled.

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