get_job_trace
Retrieve GitLab CI/CD job execution logs with options to limit lines, view tail output, and access raw log data for debugging and monitoring purposes.
Instructions
Get job trace with options for partial logs, tail mode, and line limits
Input Schema
Name | Required | Description | Default |
---|---|---|---|
job_id | Yes | Job ID | |
lines_limit | No | Maximum number of lines to return (default: 1000) | |
project_id | Yes | Project ID or path | |
raw | No | Return raw log without formatting | |
tail | No | Get the last N lines instead of first N lines |
Input Schema (JSON Schema)
{
"properties": {
"job_id": {
"description": "Job ID",
"type": "number"
},
"lines_limit": {
"default": 1000,
"description": "Maximum number of lines to return (default: 1000)",
"type": "number"
},
"project_id": {
"description": "Project ID or path",
"type": "string"
},
"raw": {
"default": false,
"description": "Return raw log without formatting",
"type": "boolean"
},
"tail": {
"default": false,
"description": "Get the last N lines instead of first N lines",
"type": "boolean"
}
},
"required": [
"project_id",
"job_id"
],
"type": "object"
}