Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

list_attached_sessions

Lists every target the current DebugSession is attached to—root page, workers, service workers, iframes—so you can use targetId to scope network tool results.

Instructions

List every target this DebugSession is currently attached to (root page + auto-attached workers, service workers, iframes). Use the targetId in network tools to scope results.

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": "list_attached_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add non-obvious behavioral detail by disclosing that auto-attached workers, service workers, and iframes are included alongside the root page. It does not clarify whether calling it triggers attachment/debugging, whether the list is a snapshot or live, or whether unattached targets are excluded — gaps that matter for a session-scoped 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?

Two short sentences with no waste. The scope statement comes first and the practical follow-up (what to do with the targetId) comes second, which is the correct front-loading.

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

Completeness4/5

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

For a zero-parameter, no-output-schema listing tool, the description conveys what is enumerated and how the result is used downstream. It stops short of describing the returned record shape (targetId, type, url, attached status), which would fully round out a tool with no output schema.

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

Parameters4/5

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

Zero parameters, so the baseline is 4 and there is nothing to misdocument. The description additionally explains that the returned targetId is the input to network tools, which is useful cross-tool semantics even though it is not a parameter of this tool.

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?

The description gives a specific verb+resource ("List every target this DebugSession is currently attached to") and enumerates the contents in the parenthetical (root page, auto-attached workers, service workers, iframes). The "currently attached to" framing implicitly separates it from a broader target-listing operation, but it never names the alternative sibling (e.g. list_targets), so the differentiation is inferential rather than stated.

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?

"Use the targetId in network tools to scope results" gives a downstream-usage hint, which implies this tool is called to obtain a scoping handle before network calls. However, there is no explicit statement of when to call this versus list_targets or activate_target, and no prerequisites or exclusions are 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