gitlab_get_job_artifact
Read a specific UTF-8 text file from a GitLab CI/CD job artifact archive with a byte limit to prevent oversized responses.
Instructions
Read one UTF-8 text file from a job archive with a bounded response.
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": {
"job_id": "<job_id>",
"artifact_path": "<artifact_path>",
"project_path": "<project_path>"
},
"name": "gitlab_get_job_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Positive numeric GitLab job ID. | |
| max_bytes | No | Maximum UTF-8 response bytes (1–2,000,000). | |
| project_path | Yes | GitLab project path (e.g. 'my-org/my-repo'). Required by default. For legacy deployments only, set GITLAB_ALLOW_DEFAULT_PROJECT=true to use GITLAB_PROJECT_PATH when omitted. | |
| artifact_path | Yes | Safe relative file path inside the job artifacts archive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| job_id | Yes | ||
| status | Yes | ||
| content | Yes | ||
| message | Yes | ||
| project | Yes | ||
| truncated | Yes | ||
| content_type | Yes | ||
| artifact_path | Yes | ||
| bytes_returned | Yes |