build_run_build
Trigger automated builds in Azure DevOps using specified project and build definition IDs, with optional branch and custom parameters, via PAT-authenticated API.
Instructions
Triggers a new build for a specified definition.
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>",
"definitionId": "<definitionId>"
},
"name": "build_run_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| definitionId | Yes | ID of the build definition to run | |
| parameters | No | Custom build parameters as key-value pairs | |
| project | Yes | Project ID or name to run the build in | |
| sourceBranch | No | Source branch to run the build from. If not provided, the default branch will be used. |