cancel_pipeline
Stop a running CI/CD pipeline when a build must be halted; preview with dry_run first because cancellation is irreversible and the prior status is recorded.
Instructions
[WRITE][risk=medium] Cancel a running pipeline.
Reads the pipeline first so priorState records the status it had before the cancel. Irreversible (the stopped run cannot be resumed) — no undo. Pass dry_run=True to preview.
Args: project: Project id or full path. pipeline: Pipeline id (from list_pipelines). dry_run: If True, preview without canceling. 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>",
"pipeline": "<pipeline>"
},
"name": "cancel_pipeline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| project | Yes | ||
| pipeline | Yes |