Skip to main content
Glama

debugger.set_breakpoint

Pauses script execution at a chosen line by URL, URL regex, or script ID, with an optional condition to stop only when an expression is truthy.

Instructions

Set a breakpoint by URL, URL regex or script id, with an optional condition expression.

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": {
      "line": "<line>"
    },
    "name": "debugger.set_breakpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
lineYes1-based line number.
columnNo
conditionNoOnly pause when this expression is truthy.
script_idNo
target_idNoTarget handle (tgt_*). Omit for the active page.
url_regexNo
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the agent knows this mutates browser state; the description adds only the optional-condition trait. It says nothing about whether breakpoints survive navigation, whether the debugger must first be enabled, or what handle comes back to later pass to debugger.remove_breakpoint. For a state-mutating tool with thin annotation coverage, this is a notable gap.

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 tight sentence, front-loaded with the action and the distinguishing locator modes, with the optional modifier trailing. There is no filler or redundancy.

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 8 parameters, one required parameter omitted from the prose, no output schema, and only two annotations, the description leaves core questions unanswered: prerequisite debugger state, breakpoint persistence, and the returned handle needed to manage breakpoints later. It is too thin for a tool of this 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 50%, and the description names four of eight parameters (url, url_regex, script_id, condition), clarifying that those three locators are alternatives and the condition is optional. However, it never mentions 'line', which is the single required parameter, and says nothing about 'column' or how the locator modes interact if several are supplied.

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') and enumerates the three locator modes (URL, URL regex, script id) plus the condition modifier, so the operation is unambiguous. It does not contrast itself with the obvious sibling debugger.remove_breakpoint or debugger.pause_on_exceptions, so the sibling-differentiation bar for a 5 is not met.

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?

The listing of locator modes implies a choice between URL, regex, and script id, which is useful implied guidance, but it never says when to prefer regex over exact URL, nor when not to use this tool versus debugger.pause or debugger.pause_on_exceptions. No prerequisites (e.g., that the debugger domain must be enabled) or when-to-use context is given.

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