Job log
get_job_logsRead the job's output log (stdout and stderr together), compact by default so it fits your context: mode=summary (default) returns recognised test results (pytest, go test, Jest, Vitest, cargo, PHPUnit, JUnit, mocha), the error lines with context and the end of the log; mode=errors only the error blocks; mode=tail the end; mode=raw (or an offset) the raw bytes. Works while the job runs and after it ended.
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": "get_job_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | summary (default), errors, tail or raw. | |
| limit | No | raw mode: how many bytes (default 16000, max 60000). | |
| job_id | Yes | Job ID (job_…) returned by run_job. | |
| offset | No | raw mode: byte offset to read from (from next_offset of the previous call); negative = from the end. | |
| max_chars | No | Size of the digest in characters for summary/errors/tail (default 6000, 500–100000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | summary, errors, tail or raw. | |
| size | Yes | Total log size in bytes. | |
| text | Yes | The log digest (summary/errors/tail) or the raw bytes (raw). | |
| lines | No | Total number of log lines (digest modes). | |
| job_id | Yes | Job ID. | |
| offset | No | raw: byte offset of text. | |
| status | Yes | Job state. | |
| complete | No | raw: the end of the log was reached. | |
| exit_code | No | Exit code (after it ended). | |
| next_offset | No | raw: offset to continue from. | |
| test_results | No | Recognised test results, if any. |