jobd_logs
Read the captured stdout/stderr tail of a running or finished job to check progress, diagnose failures from tracebacks, or retrieve final output.
Instructions
Tail the captured stdout/stderr of a job (workers stream output to the broker's per-job log as it runs). Returns log_tail (last tail_bytes, default 8 KiB, max 1 MiB) plus size_bytes/returned_bytes/truncated — works for running AND finished jobs. Use to check progress mid-run, diagnose a failure's traceback, or grab a job's final 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": {
"job_id": "<job_id>"
},
"name": "jobd_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Numeric job id whose captured output to read. | |
| tail_bytes | No | How many bytes from the END of the log to return (server caps reads at 1 MiB). Raise for context, lower for a quick liveness peek. |