Skip to main content
Glama
Chrome DevTools Debug MCP Server

Chrome DevTools Debug MCP Server

by m4eba

activate_target

Brings a Chrome tab to the foreground by activating its target and raising the window, so you can focus a specific page during debugging. Defaults to the attached target.

Instructions

Make a tab the active tab and bring its Chrome window to the front (CDP Target.activateTarget). Defaults to the currently attached target. Whether the window actually comes to the front depends on the window manager.

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

Input Schema

NameRequiredDescriptionDefault
targetIdNoTarget ID of the page/tab. Defaults to the current target.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses the effect (tab activated, window raised), the CDP primitive behind it, the default target, and an honest platform-dependent limitation. It does not say what happens if the target is closed or what the call returns, leaving a small 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?

Two tight clauses with the primary action front-loaded, followed by the default and the caveat — every sentence contributes information and there is no padding.

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, non-destructive activation tool with no output schema and no annotations, the description covers effect, default, and a realistic failure mode. The remaining gap is the lack of contrast with switch_target, which matters given how close that sibling's purpose appears.

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% for the single targetId parameter, and the description only restates the default that the schema already documents. It adds no format, ID-source, or validity information beyond the schema, so the baseline 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?

The description gives a specific verb and resource ('Make a tab the active tab and bring its Chrome window to the front') plus the underlying CDP command, so the action is unambiguous. It does not, however, distinguish itself from the sibling 'switch_target', which an agent could easily confuse with this one.

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?

It states the default behavior ('Defaults to the currently attached target'), which is implied usage context, but gives no explicit guidance on when to prefer this over switch_target or when activation would fail. The window-manager caveat is useful but is about outcome, not selection.

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