Cancel pipeline run
cancel_pipeline_runCancel an Ankra Pipelines run that has not concluded. A started run that declares finally stages runs them before it concludes cancelled, so the answer can still be running; cancel again with force to stop those too. A run that already concluded is refused. Address the repository with exactly one of repository_id, application_id, or owner and repo. Needs pipelines.operate.
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": {
"pipeline_run_id": "<pipeline_run_id>"
},
"name": "cancel_pipeline_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name, with owner. | |
| force | No | Also stop its finally stages and conclude it at once (default false). | |
| owner | No | Repository owner (organisation or user), with repo, instead of repository_id. | |
| provider | No | Narrows owner and repo when the same repository is connected on two providers. | |
| repository_id | No | The connected repository's id, from list_pipeline_repositories. | |
| application_id | No | An application whose linked repository to address, instead of repository_id. | |
| pipeline_run_id | Yes | The run to cancel (its UUID). |