Skip to main content
Glama

desktop_cdp_open

Opens a CDP session on a Chromium page for Chrome, Edge, or Electron automation. Select by title, URL substring, or index; optionally navigate to a URL before control.

Instructions

连上一个浏览器的页面,建立 CDP 会话(后续 cdp_* 工具都作用于它)。 可按 title / url 子串或下标选页面;带 url 时会先导航过去。 这是操作 Chromium 系应用(Chrome / Edge / Electron)的入口 —— UIA 看不见它们的内部,CDP 能。

Input Schema

NameRequiredDescriptionDefault
urlNo按 URL 子串选页面 / 或导航到此 URL
portNo调试端口;省略则自动扫描
indexNo第几个页面,默认 0
titleNo按标题子串选页面
navigateNourl 是否作为导航目标(true)还是筛选条件(false,默认)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.9/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the persistent session model and that the port is auto-scanned, but it states '带 url 时会先导航过去' while the schema says url is a filter by default (navigate=false), which is a behavioral conflict an agent could trip over. It also omits whether a browser is launched if none is running and whether only one session may be active.

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?

Four short lines, front-loaded with the core action and session relationship, then selection modes, then the entry-point rationale. Dense and largely waste-free; only the url-navigation sentence works against the tool rather than for it.

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 five-parameter, zero-required, no-output-schema connection tool, the description covers the session model, selection strategies and the Chromium rationale. What's missing is what happens on failure (no debug port found, no target match) and whether the session must be released with desktop_cdp_close.

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 baseline is 3 and the schema already explains url, title, index, port and navigate. The description adds the selection modes (title/url substring or index) but muddies the url parameter by implying it always navigates, contradicting the navigate flag's documented default of false.

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 specific verb and resource (connect to a browser page, establish a CDP session) and immediately clarifies that all subsequent cdp_* tools operate on that session, which separates it from desktop_cdp_click/type/eval in the sibling list. The added note that this is the entry point for Chromium-family apps (Chrome/Edge/Electron) makes the scope unmistakable.

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?

Gives real routing guidance: use this for Chromium apps because UIA can't see inside them, which tells the agent when to prefer CDP over the desktop_perceive/desktop_click family. It does not cover sequencing explicitly (whether desktop_browser_launch is a prerequisite, or that desktop_cdp_close ends the session), so it stops short of full when/when-not guidance.

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