Manage DeepSeek Harness sessions
dsh_sessionList, resume, or close DeepSeek Harness sessions. Filter by working directory or session ID; operations never start or create sessions implicitly.
Instructions
查看/恢复/关闭 DSH 会话。list/status 始终可答(未启动时返回缓存视图),并可用 cwd/session_id 收窄结果:过滤只作用于已经存在(running 或缓存)的会话行,绝不创建目录、不隐式启动或恢复任何会话,无匹配时返回空数组;不带过滤参数时仍返回完整视图(包含原生错误行)。resume/close 需要 dsh 正在运行。
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": {
"action": "<action>"
},
"name": "dsh_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | list/status:只保留该目录的会话(规范化路径比较,Windows 忽略大小写) | |
| action | Yes | 会话操作 | |
| session_id | No | list/status:只保留该会话;resume/close 必填 | |
| new_session | No | 仅 resume 之外使用;与 session_id 互斥 |