Job status
get_jobRetrieve the status and new output of a background job since the last read, optionally waiting for completion to avoid polling.
Instructions
Status of a background job and the output accumulated since the last read.
Output is returned as a delta and cleared from the buffer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Seconds to wait for completion, to avoid polling in a loop; 0 — don't wait. Above the server's cap — waits as long as it allows. | |
| job_id | Yes | Identifier from start. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| cwd | Yes | ||
| host | Yes | ||
| error | No | reason when status=error; empty otherwise | |
| status | No | running | |
| stderr | Yes | ||
| stdout | Yes | ||
| command | Yes | ||
| exit_code | No | return code; null — still running or killed | |
| stderr_truncated | Yes | ||
| stdout_truncated | Yes |