Job state
queue_jobCheck a queued job's status, exit code, outcome, and recent output using its job ID to monitor runs and diagnose failures.
Instructions
The state of a job started with queue_run: starting, waiting, running, finished or lost (its runner ended without a result). For a finished job: the exit code and the outcome from the queue journal (ran, skipped, refused, timed-out, gave-up, left, stopped, could-not-start). Also the last lines of its output.
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": {
"jobId": "<jobId>"
},
"name": "queue_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | The job id queue_run returned. | |
| tailLines | No | How many lines of output to return, from the end. Default: 40. |