cancel_build
Cancel a running or queued Codemagic build. Use when a build is no longer needed, such as after triggering with the wrong branch or detecting an error.
Instructions
Cancel a running or queued Codemagic build. Use when a triggered build is no longer needed — for example if the wrong branch was used or an error was found after triggering. Has no effect on builds that have already finished.
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": {
"build_id": "<build_id>"
},
"name": "cancel_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build_id | Yes | The Codemagic build ID to cancel (from trigger_build or list_builds) |