Close a DSH session
dsh_close_sessionClose one ACP session to cancel in-flight work, release run resources, and flush persistence while retaining resumable history. Requires confirm=true before closing.
Instructions
Close exactly one session via ACP session/close. This cancels in-flight work, drains updates, flushes persistence, and releases the session run scope. Persisted history is retained and can be resumed later. Requires confirm=true. Closing is NOT read-only and is NOT a safe way to inspect a session; it will cancel that session's in-flight work.
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>",
"confirm": "<confirm>"
},
"name": "dsh_close_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true: closing cancels in-flight work and releases run resources (history is kept; it is not read-only). | |
| session_id | Yes | Explicit session id to close. |