Start a background job
start_jobStart a long command (installs, composer, compiles, imports, backups) in the background as the user the agent runs as, in its own systemd unit, so it keeps running after this call returns and through agent updates. Returns a job_id; read progress with job_output. Destructive commands need the user's approval, like run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory, absolute. | |
| why | No | One plain sentence for the user, shown on the approval page if this call needs their approval: what it does and why it is needed. | |
| name | No | Short label, like magento-install. | |
| server | No | Server name or id. Optional when the account has one server. | |
| command | Yes | ||
| approval_id | No | Only when repeating a call the user approved. |