Cancel a long-running task
ssh_task_cancelRequest closing the SSH exec channel for a background task and report whether the close or remote exit status was acknowledged, not remote command termination.
Instructions
Requests closing the SSH exec channel owned by this task. channelCloseConfirmed reports whether a channel close or a remote exit status was observed; that only means the request was acknowledged by the server or remote side, and does not prove the remote command or its children have terminated.
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": {
"taskId": "<taskId>"
},
"name": "ssh_task_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| state | Yes | ||
| signal | Yes | ||
| taskId | Yes | ||
| endedAt | Yes | ||
| exitCode | Yes | ||
| startedAt | Yes | ||
| updatedAt | Yes | ||
| connectionId | Yes | ||
| cancelRequested | Yes | ||
| channelCloseConfirmed | Yes |