Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

switch_target

Changes the active debugging target to a specified page or tab by ID. Use it after listing targets to focus DevTools operations on the desired tab.

Instructions

Switch to a different target (page/tab) by its ID. Use list_targets to see available targets.

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": {
      "targetId": "<targetId>"
    },
    "name": "switch_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetIdYesTarget ID of the page/tab to switch to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden, and it does convey the core effect (the active page/tab changes to the given ID). It says nothing about required connection state, invalid-ID behavior, or whether the switch is reversible or affects other sessions.

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?

Two short sentences, front-loaded with the action and followed by the prerequisite. No filler, though the parenthetical page/tab gloss and the pointer sentence could be tightened only marginally.

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 one-parameter state-changing tool with a fully described schema and no output schema, the definition covers the essentials: what it does and where to get the ID. Missing only edge-case behavior (unknown ID, no active connection), which is a minor gap at 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 100% and the single parameter targetId is already documented as 'Target ID of the page/tab to switch to'. The description adds no format, sourcing, or validation detail beyond the schema, so the baseline of 3 applies.

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 concrete verb plus resource and glosses 'target' as 'page/tab', which removes ambiguity about the object being switched. It does not distinguish itself from the similarly named sibling activate_target, so an agent cannot tell the two apart from the definition alone.

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

Usage Guidelines4/5

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

Explicitly points the agent to list_targets to obtain a valid ID, which is the key prerequisite for calling this tool. It stops short of stating when this is preferred over activate_target or what happens if the target is already active.

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