Skip to main content
Glama

browser_reattach_debugger

Force-detach and re-attach the Chrome debugger on the current tab to recover from click, fill, or keypress timeouts and ghost-attach errors while tab listing still works.

Instructions

RECOVERY: Force-detach and re-attach the Chrome debugger on the current tab. Use when interactive tools (click/fill/press_key) start timing out or reporting ghost-attach ("Debugger attach failed ... ghost") while list_tabs still works - faster than reloading the extension.

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

Input Schema

NameRequiredDescriptionDefault
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. Addedv1.28.0

TDQS

A4.2/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. It does disclose that the operation is a forced detach/attach on the current tab and that it is a recovery action, but it does not say what happens if no debugger is attached, whether in-flight operations are disrupted, or what a success response looks like.

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?

Front-loaded with a category label, then the action, then the trigger condition and the alternative. The quoted error fragment is functional (it matches the observed message) rather than filler, and there is no redundant restatement.

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 recovery tool with no output schema, the description covers purpose, trigger, and rationale. The remaining gap is what the caller should expect back and whether the current tab's state survives the re-attach.

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 partition parameter is already fully documented in the schema, including the unknown/closed-id error behavior. The description adds no additional meaning about partitioning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb pair (force-detach and re-attach) and a specific resource (the Chrome debugger on the current tab), prefixed with RECOVERY to signal its category. It also implicitly distinguishes itself from browser_click/browser_fill/browser_press_key and browser_list_tabs by describing the exact failure mode those siblings exhibit.

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

Usage Guidelines5/5

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

Gives an explicit trigger condition (interactive tools timing out or reporting ghost-attach while list_tabs still works) and an explicit alternative it beats (reloading the extension). An agent can decide to call this without guessing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.