Start Detached Remote Background Job
ssh_bg_startStart a detached background command on a remote Unix or Windows server, logging output to a private temp file so jobs survive SSH disconnects.
Instructions
Start a non-interactive detached background command on a remote Unix or Windows server. Output is logged to a private remote temp file so the job and logs survive SSH disconnects. Requires explicit cwd.
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": {
"target": "<target>",
"cwd": "<cwd>",
"command": "<command>"
},
"name": "ssh_bg_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Required remote working directory: explicit absolute path (e.g. /srv/app or C:\Services\app) or '~' for system-wide commands. Command aborts if cwd does not exist. | |
| label | No | Optional human-readable label for the job | |
| shell | No | Optional shell override | |
| target | Yes | SSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target. | |
| command | Yes | Command to run in the background |