Read job output
get_job_logsRead a job's output (stdout and stderr combined). The first read is after 0, and each later one passes the returned cursor as after. follow: true waits up to 25 s for new output instead of returning at once. done is true once the job has ended and all output was read; its status, exit_code and cost are in get_job. chunks are raw fragments in order, not lines: join their text as is. A response holds up to about 1 MB. Logs are capped at 10 MB per job: the first 5 MB and the newest output are kept, and truncated is true when the middle was dropped.
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": {
"id": "<id>"
},
"name": "get_job_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job ID | |
| after | No | cursor from the previous call (default 0, the start) | |
| follow | No | Wait up to 25 s for new output or the end of the job (default false) | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) |