get_job_trace
Fetch GitLab CI job logs with support for partial retrieval, tail mode, and line limits.
Instructions
Get job trace with options for partial logs, tail mode, and line limits
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_id": "<project_id>",
"job_id": "<job_id>"
},
"name": "get_job_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Return raw log without formatting | |
| tail | No | Get the last N lines instead of first N lines | |
| job_id | Yes | Job ID | |
| project_id | Yes | Project ID or path | |
| lines_limit | No | Maximum number of lines to return (default: 1000) |