Skip to main content
Glama

Start DeepSeek Harness (dsh)

dsh_start

Launches or attaches to a local DSH instance, completes the handshake, and opens the native web UI. Returns the web URL to monitor sessions and permission prompts.

Instructions

显式启动/连接本机 DSH 并完成握手(幂等:连续或并发调用只启动一个)。transport=acp(默认)启动 dsh --profile acp;transport=web(DSH_BRIDGE_TRANSPORT=web)会自动管理一个本地 Web 服务:复用已记录的服务,或(默认端口 0)新起一个 dsh web 子进程并把它捕获的 token 私密换成浏览器 cookie。完成后返回 running:true、state、web_url(不含 token);web 模式下默认会在用户默认浏览器里打开原生 Web UI,可用 open_browser:false 关闭。返回的 web_url 就是本桥正在驱动的那个原生 Web 服务:请用这个 URL(不要假设固定端口——用户机器上的 3080 可能是另一个未被本桥连接的服务),并在其中选择同一个 workspace/session 观察同一段对话与权限提示。失败返回明确错误且桥保持可调用,可重试。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
open_browserNoweb 模式:本轮是否打开默认浏览器(默认 true;同一次启动最多打开一次)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does an excellent job: it discloses idempotency, subprocess management for web mode, token-to-cookie handling, browser opening, URL safety warnings, and failure/retry behavior. This goes well beyond what the schema or annotations provide.

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?

The description is dense but every clause adds value; it is front-loaded with the core action and idempotency. It would benefit from structured separation of the transport modes and return-value notes, but it is not padded or redundant.

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?

Despite lacking an output schema and annotations, the description covers the important runtime context: return fields, absence of token in web_url, port ambiguity, browser behavior, and retry safety. This is sufficient for an agent to invoke the tool and interpret the result correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaningful context beyond the schema by explaining that open_browser only applies in web mode, defaults to true, and opens at most once per start. This gives the parameter operational meaning.

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?

The description clearly states the action ('显式启动/连接本机 DSH 并完成握手') and the resource (DSH), and adds the idempotency property. It does not explicitly differentiate itself from sibling tools like dsh_run or dsh_status, so it stops short of the 5-level sibling distinction.

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?

The description gives clear context for two operational modes (transport=acp and transport=web) and explains the open_browser behavior in web mode. It does not explicitly say when to avoid this tool or when a sibling tool would be more appropriate, so it lacks explicit exclusion guidance.

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