Skip to main content
Glama

dsh_continue

Continue an existing DSH session with another instruction while keeping its conversation, working directory, and file changes; use it to resume prior work without starting over.

Instructions

Continue an existing DSH session with another instruction. The session keeps its conversation, working directory, and file changes from earlier calls. Default transport "auto" sends only through the DSH Desktop companion, so the message appears in the UI. If the companion or target session is unavailable, it stops without trying ACP. Set transport to "acp" only when you know the session is closed in DSH Desktop; set "desktop" to require visible delivery. Desktop reports can be read with dsh_get_result if the wait limit expires. Resume requires the same working directory the session recorded. Select a project session with dsh_list_sessions and pass the matching workspace_id and session_id. ACP permission requests are rejected because this tool has no interactive approval UI; saved permissions remain in effect.

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": {
      "session_id": "<session_id>",
      "task": "<task>"
    },
    "name": "dsh_continue"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoAbsolute working directory for the DSH session. Relative paths resolve against this MCP server's own working directory. Omit to use the directory Codex launched the server in.
taskYesThe complete task for the DSH agent. Write it as a self-contained instruction: DSH starts a fresh session with no knowledge of this conversation, so include the goal, the constraints, and what a finished result looks like.
add_dirsNoExtra absolute directories granted to DSH under workspace-write, for example a shared .git directory. Each entry is an explicit grant, so list only what the task needs. Existing-session ACP resumes keep the directories already stored in DSH.
transportNoSession routing: auto (default; use the Desktop companion and never fall back to ACP), desktop (require visible delivery), or acp (explicitly resume through ACP; use only after closing the session in DSH Desktop).
session_idYesSession id returned by an earlier dsh_task or dsh_continue call.
timeout_secNoWall-clock limit for this task in seconds (30-3600, default 900).
workspace_idNoID returned by dsh_list_workspaces. When supplied, the registered DSH workspace path is used as cwd.
permission_modeNoPermission preset for the DSH session. Default "workspace-write": DSH may edit files inside the working directory but not outside it. Use "read-only" for pure research. Existing-session ACP resumes keep the permission settings already stored in DSH and cannot change them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.7

TDQS

A4.5/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 behavioral burden and does so: it discloses that auto will not fall back to ACP when the companion is unavailable, that ACP permission prompts are auto-rejected because there is no approval UI, and that ACP resumes keep stored directories and permissions and cannot change them. These are exactly the non-obvious side effects an agent needs before calling.

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-loaded with purpose, then transport, then failure handling, then session selection — a sensible order with no filler sentences. It runs long and repeats some schema-documented transport details, which keeps it off a 5.

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 an 8-parameter mutation-style tool with no annotations and no output schema, the description covers routing, permission behavior, failure modes, and where to read delayed results. The main remaining gap is whether the call blocks until the task finishes and what it returns on success versus timeout, which is only obliquely implied.

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%, so transport, permission_mode, cwd, and timeout_sec are already fully documented in the schema; the description's transport and permission sentences largely restate that. The added value is the resume constraint tying cwd to the session's recorded directory and the workspace_id/session_id pairing, but the parameter layer is mostly redundant.

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?

"Continue an existing DSH session with another instruction" gives a specific verb and resource, and "existing" contrasts with a fresh-session tool, so an agent can tell it apart from dsh_task. It also names the concrete artifacts carried forward (conversation, working directory, file changes).

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?

It states exactly when each transport applies: auto as default (Desktop only, never ACP fallback), acp only after closing the session in DSH Desktop, desktop to require visible delivery. It also routes session selection to dsh_list_sessions and result retrieval to dsh_get_result, leaving little to inference.

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