Tail job logs
cron_tail_job_logsRead the latest stdout/stderr lines from a job's current or last run and poll with a cursor to fetch newly appended output.
Instructions
Last retained stdout/stderr lines of a job's newest running instance, or of its last finished run when none is running, with a cursor to poll for newly appended lines (the poll form of the live log stream). Use it to read what a job printed; use cron_list_runs for exit status and timing.
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": {
"name": "<name>"
},
"name": "cron_tail_job_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact job name, as cron_list_jobs returns it. An unknown name returns an error. | |
| tail | No | Most lines to return, newest last (default and maximum 200). | |
| cursor | No | Omit it for the latest lines. To poll, pass the previous result's cursor to get up to tail lines after it, and call again while pages come back full. In the result, skipped counts lines after the cursor that the 1000-line buffer dropped. reset means the cursor is past this run's output: it came from another run, or the run's lines are gone (an ended workflow task, or a run from before a daemon restart). If started_at changed, the lines come from another run, so call again without a cursor. |