Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

set_breakpoint_by_id

Sets a breakpoint at a specified script ID and line in a loaded script, optionally with a condition or column, to pause execution for debugging.

Instructions

Set a breakpoint at a specific location in a loaded script.

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": {
      "scriptId": "<scriptId>",
      "lineNumber": "<lineNumber>"
    },
    "name": "set_breakpoint_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
scriptIdYesScript ID from list_scripts or scriptParsed event
conditionNoBreakpoint condition expression
lineNumberYesLine number (0-based)
columnNumberNoColumn number (0-based)

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 behavioral burden, and it discloses almost nothing beyond the verb. It does not state that the debugger must be enabled, whether the breakpoint persists across reloads, what happens if the line has no executable code, or whether conditional breakpoints pause evaluation. 'Set' is the only signal that this mutates state.

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?

A single front-loaded sentence with no filler. It is efficient, though its brevity is close to under-specification rather than disciplined concision.

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 debugger-mutation tool with zero annotation coverage and no output schema, an agent still lacks prerequisites (debugger_enable, script must be loaded via list_scripts) and lifecycle behavior. The rich schema partly compensates on parameters, but the operational context needed to call this safely and correctly is absent.

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 each of the four parameters documented in the schema itself (including 0-based indexing and condition semantics), so the baseline is 3. The description adds only the loose mapping of 'specific location' to the scriptId/lineNumber pair and nothing about condition or columnNumber.

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 and resource ('Set a breakpoint') plus a scope qualifier ('at a specific location in a loaded script'), which an agent can distinguish from DOM/event/XHR breakpoint siblings. It stops short of differentiating itself from the closest sibling, set_breakpoint, so the '_by_id' versus location/URL distinction is only inferable from the name.

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?

No when-to-use or when-not guidance and no mention of an alternative tool. The phrase 'in a loaded script' faintly implies the script must already be parsed, but the agent is left to infer whether to use set_breakpoint, set_breakpoint_by_id, or set_dom_breakpoint.

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