Command in background
startExecute a command on a host in the background and return its job ID immediately, enabling long-running tasks to be tracked without blocking.
Instructions
Start a command on a host in the background and return its job id right away.
For long-running commands: output is collected with the job call. The job lives as long as the server does (within the session) and doesn't outlive it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Same as run. | ~ |
| host | Yes | Alias from ~/.ssh/config. | |
| sudo | No | Same as run. | auto |
| command | Yes | Command for the host's shell. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cwd | Yes | ||
| host | Yes | ||
| error | No | reason when status=error; empty otherwise | |
| status | No | running | |
| command | Yes | ||
| exit_code | No | return code; null — still running or killed |