vm_job_start
Starts a long-running program in a UTM guest VM, returning a job ID and PID so builds, installers, or servers run in the background and logs can be read separately.
Instructions
Starts a long-running program in the guest that outlives this call (a build, an installer, a server) and returns {id, pid}. Output (stdout and stderr, interleaved) is kept in a log you read with vm_job_log. Use jobs, not vm_exec with a long timeout, for anything that takes more than a minute. argv[0] is the executable, no shell: ["cmd.exe", "/c", "..."] for shell syntax. as_: user (default), admin or system, as for vm_run_user. Windows guests, needs the helper.
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": {
"vm": "<vm>",
"argv": "<argv>"
},
"name": "vm_job_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| as_ | No | user | |
| cwd | No | ||
| argv | Yes | ||
| show | No |