gitlab_ci
Inspect GitLab CI/CD pipelines, tail masked job logs, and trigger, retry, or cancel jobs and pipelines with preview confirmations.
Instructions
Inspect pipelines, read build logs, and trigger or cancel GitLab CI/CD jobs.
Actions:
'pipelines': List pipelines or jobs within a pipeline.
'job_log': Tail execution log of a CI job (secrets masked).
'retry_job': Retry a failed CI job (confirm=false previews).
'cancel_job': Cancel a running CI job (confirm=false previews).
'retry_pipeline': Retry failed jobs in a pipeline (confirm=false previews).
'cancel_pipeline': Cancel an active pipeline (confirm=false previews).
'trigger_pipeline': Trigger a new pipeline on an allowed ref (confirm=false previews).
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": {
"action": "<action>",
"project": "<project>"
},
"name": "gitlab_ci"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Git branch/tag ref | |
| limit | No | Pipelines limit | |
| lines | No | Log lines count | |
| action | Yes | ||
| job_id | No | Job ID | |
| status | No | Pipeline status filter | |
| confirm | No | false = preview only; true = apply | |
| project | Yes | Project alias from gitlab_projects | |
| pipeline_id | No | Pipeline ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||