Skip to main content
Glama

connect_browser

Attach to or launch a real Brave, Chrome, or Chromium browser with your logged-in sessions and cookies to test extensions on authenticated live websites.

Instructions

DEFAULT/PREFERRED way to test an extension — connect to your real Brave/Chrome/Chromium browser with your actual logged-in sessions, cookies, and tabs preserved. Use this whenever testing requires navigating a real website as a logged-in user (job boards, email, social platforms, anything gated behind an account) — most extensions that interact with live sites need this. Only skip it in favor of load_extension's throwaway browser if the extension is fully self-contained (on-device/offline models, local-only tools, no real-account dependency). Use action 'scan' first to see what's available, then 'connect' to attach to a running browser or 'launch' to start one with debugging enabled.

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": {
      "action": "<action>"
    },
    "name": "connect_browser"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoCDP debug port to connect to (for 'connect' action). Defaults to 9222.
actionYes'scan' — list running debuggable browsers and installed browsers. 'connect' — attach to a browser already running with --remote-debugging-port. 'launch' — start an installed browser with your real profile and remote debugging, then connect. 'list_extensions' — list all installed extensions with their IDs and names.
debug_portNoPort to use for remote debugging when launching (for 'launch' action). Defaults to 9222.
browser_nameNoWhich browser to launch (for 'launch' action). Defaults to 'Brave'.
extension_idNoExtension ID (32 lowercase chars) or name substring to target (for 'connect' and 'launch' actions). Overrides auto-detection — pass the name (e.g. 'AudiTex') or full ID to pick the right extension when multiple are installed.
browser_name_for_extensionsNoWhich browser's extensions directory to scan (for 'list_extensions' action). Defaults to 'Brave'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does most of it: it discloses that real profiles, cookies, and tabs are used, that 'launch' starts a browser with remote debugging enabled, and that a debug port is involved. It does not cover side effects of launching a browser (profile locks, existing browser instances, auth prompts) or what happens on failure.

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?

Front-loads the key claim (DEFAULT/PREFERRED) and keeps the reasoning close to it, with the scan/connect/launch sequence at the end where it belongs. The long parenthetical lists ("job boards, email, social platforms, anything gated...") are slightly redundant but each sentence carries actionable information.

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?

Complete for a browser-attachment tool with no output schema: it explains the alternative, the preconditions (browser running with --remote-debugging-port), and the recommended workflow across actions. Remaining gaps are behavioral edge cases around launching a real profile rather than core selection guidance.

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 action enum descriptions already explain scan/connect/launch/list_extensions plus defaults for port and browser_name. The description's only addition is the recommended call order (scan before connect/launch), which is useful but limited; baseline 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?

Opens with a specific verb and resource ("connect to your real Brave/Chrome/Chromium browser") and immediately scopes what it means: real logged-in sessions, cookies, and tabs preserved. It is clearly distinguishable from the only named alternative, load_extension's throwaway browser.

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 when-to-use rule (testing as a logged-in user on gated sites) and an explicit when-to-skip rule (fully self-contained/offline extensions), naming the sibling that serves that case. It also prescribes an action ordering: 'scan' first, then 'connect' or 'launch'.

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