cancel_build
Cancel a running or queued build in TeamCity. Optionally include a comment or requeue the build after cancellation.
Instructions
Cancel or stop a running or queued build, with optional comment and requeue flag. Returns the cancelled build; returns 404 if the build is unknown.
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": {
"buildId": "<buildId>"
},
"name": "cancel_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buildId | Yes | Build ID | |
| comment | No | Optional cancellation comment | |
| readdIntoQueue | No | If true, a new identical build will be queued after cancel (running builds only). Defaults to false. |