ssh_exec_background
Run long-running SSH commands in a detached background subshell to avoid client timeouts, then poll task logs and status by taskId.
Instructions
Launch long-running command in a detached background subshell (avoids client timeout). Returns a taskId to poll logs and status.
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": {
"command": "<command>"
},
"name": "ssh_exec_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Optional SSH connection target. If omitted, uses default profile (homelab). | |
| command | Yes | Long-running command (e.g. docker compose build, npm build). | |
| taskTag | No | Human-readable tag prefix for taskId (e.g. "deploy", "cronjob"). | |
| workingDir | No | Remote working directory. |