vm_job_log
Read a background job's output from a byte offset, then pass the returned next offset to follow new text or completion; use it to monitor builds and installs without long command timeouts.
Instructions
Reads a job's output from byte offset: {id, pid, running, exit_code (once it ended), size,
offset, next_offset, text, truncated}. To follow a job, pass next_offset back as offset each
time; with wait=N seconds the call returns as soon as there is new text or the job ends, else
after N seconds (polls every second). Use it for builds and installs instead of long vm_exec
timeouts. truncated: the log hit its 64 MB cap and stops growing.
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>",
"id": "<id>"
},
"name": "vm_job_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| vm | Yes | ||
| wait | No | ||
| offset | No | ||
| max_bytes | No |