Start a long-running command
ssh_exec_startStarts a long-running non-interactive SSH command as a background task and returns a task ID immediately, enabling output polling or cancellation without blocking the client.
Instructions
Starts a long-running non-interactive remote command and returns a taskId immediately; poll output increments with ssh_task_poll and stop it with ssh_task_cancel. Task state and output buffers live only in this server process; after a restart or disconnect the remote state cannot be confirmed (marked unknown_after_disconnect), and commands are never replayed automatically. Cancel only closes the SSH channel owned by this server; it does not guarantee that the remote process 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": {
"connectionId": "<connectionId>",
"command": "<command>"
},
"name": "ssh_exec_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeoutMs | No | ||
| connectionId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| taskId | Yes | ||
| startedAt | Yes | ||
| connectionId | Yes |