Skip to main content
Glama

连接本地 Edge 浏览器

connect_edge
Read-only

Connect to an already-running Microsoft Edge via its CDP debugging port, returning version, endpoint, and current tabs, to verify the correct browser window before performing cloud management actions.

Instructions

通过 CDP(Chrome DevTools Protocol) 连接本机已用 --remote-debugging-port 启动的 Microsoft Edge。这是所有其它 Tool 的前置步骤(其它 Tool 在未连接时也会自动尝试连接)。返回浏览器版本、CDP 端点以及当前所有标签页的 URL/标题,便于确认"接管"的是正确的窗口。本 Server 不会启动新浏览器、不会关闭用户的浏览器窗口,也不读取或保存任何账号凭据。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo是否强制断开现有连接后重新连接(默认 false,直接复用已有连接)。
cdpPortNoCDP 调试端口,默认 9222。需与启动 Edge 时的 --remote-debugging-port 一致。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

The annotations already indicate readOnlyHint=true, openWorldHint=false, and destructiveHint=false, but the description adds valuable guarantees: it will not launch a new browser, will not close the user's window, and will not read or save credentials. It also discloses the returned browser version, CDP endpoint, and tab information, going beyond the structured annotations.

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?

Three dense sentences each earn their place: the connection method and target, the prerequisite relationship to other tools, and the return value plus safety guarantees. Essential information is front-loaded and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given two optional parameters, no output schema, and existing annotations, the description still explains the return value (browser version, CDP endpoint, tab URLs/titles), the prerequisite Edge launch flag, and the non-destructive safety profile. An agent has everything needed to invoke it correctly and interpret the result.

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%, so the schema already documents both `force` and `cdpPort` well. The description reinforces that the port must match the --remote-debugging-port value, but it adds no substantial new semantic meaning beyond what the parameter schemas already provide.

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?

The description states a specific verb (connect via CDP), a specific resource (local Microsoft Edge started with --remote-debugging-port), and clearly frames itself as the prerequisite step for all other tools. This distinguishes it from the sibling browser-action and cloud-management tools without ambiguity.

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?

It explicitly says this is a prerequisite for all other tools and that other tools will auto-connect when not connected, giving a clear sense of when a manual explicit connection is needed. It does not spell out when not to use it, but the guidance is sufficient for an agent to decide.

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