dsh_open_session
Open an agent session in the running DeepSeek Harness app via MCP, reusing an idle session with the same preset and working directory or creating a new one when reuse is false.
Instructions
Open a Session in the running app. By default it reuses the newest idle Session with the same preset and cwd. Set reuse to false for a new Session.
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": {
"cwd": "<cwd>"
},
"name": "dsh_open_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute working directory for the Session. | |
| reuse | No | Reuse an idle Session with the same preset and cwd. | |
| preset | No | Agent preset id. | yuu |