job_trace_tail
Fetch the trailing lines of a CI/CD job's log/trace by project and job to diagnose failures; increase tail_lines if truncation hides earlier errors.
Instructions
[READ] The tail of one job's log/trace — where the failure explains itself.
Returns {project, job, trace, totalLines, tailLines, returned, limit, truncated, charsTruncated}. 'truncated' true means earlier lines were dropped (the trace is only the tail — the FIRST error may be above the window, so raise tail_lines before concluding a root cause); 'charsTruncated' true means the tail itself hit the byte ceiling.
Args: project: Project id or full path. job: Job id (from pipeline_jobs). tail_lines: How many trailing lines to return (default 60). target: Server target name from config; omit for the default.
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": {
"project": "<project>",
"job": "<job>"
},
"name": "job_trace_tail"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | ||
| target | No | ||
| project | Yes | ||
| tail_lines | No |