Skip to main content
Glama

browser.connect

Attach to an existing Chromium browser through its CDP WebSocket endpoint so it can be inspected and controlled without the daemon terminating it.

Instructions

Attach to a Chromium started elsewhere, via its CDP WebSocket endpoint. The daemon will never kill it.

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": {
      "ws_endpoint": "<ws_endpoint>"
    },
    "name": "browser.connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
pidNo
profileNo
ws_endpointYesws://127.0.0.1:PORT/devtools/browser/...

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and openWorldHint=true, so the mutating, external-facing nature is covered. The description adds one genuinely non-obvious lifecycle guarantee ('The daemon will never kill it'), which is real value beyond the annotations, but it omits other stateful behavior: whether connecting replaces an existing active browser, what happens if a session is already attached, and what is returned.

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, front-loaded with the mechanism and followed by the key guarantee. No filler, no restatement of the tool name.

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?

The tool has no output schema (so the description should say what a successful attach yields, e.g. a target/browser handle) and two undocumented parameters, yet it covers neither. For a stateful connection operation this leaves an agent without enough to call it confidently in non-trivial cases.

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

Parameters2/5

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

Schema coverage is only 33%: ws_endpoint carries an example description, but pid and profile have no schema documentation at all. The description mentions only the endpoint (implicitly) and adds nothing about what pid or profile do or when they are needed, so it does not compensate for the coverage gap.

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 ('Attach to a Chromium') plus the transport mechanism ('via its CDP WebSocket endpoint'). The phrase 'started elsewhere' implicitly separates it from browser.launch without naming the sibling, so an agent can distinguish the two, though the differentiation is inferential rather than explicit.

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?

'Started elsewhere' implies the usage context (a browser the daemon did not spawn), but the description never states a when-to-use rule or names browser.launch/browser.close as the alternatives for the managed case. Usage is left to inference.

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