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
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute 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. | |
| task | Yes | The 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_dirs | No | Extra 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. | |
| transport | No | Session 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_id | Yes | Session id returned by an earlier dsh_task or dsh_continue call. | |
| timeout_sec | No | Wall-clock limit for this task in seconds (30-3600, default 900). | |
| workspace_id | No | ID returned by dsh_list_workspaces. When supplied, the registered DSH workspace path is used as cwd. | |
| permission_mode | No | Permission 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. |