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.
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": "start_job"
}
}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. |