List stale branches
list_stale_branchesFind Azure DevOps branches with commits older than a set age, excluding main, master, and develop, to target cleanup.
Instructions
Find branches whose latest commit is older than a configured age; main, master, and develop are protected by 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": {
"repositoryId": "<repositoryId>"
},
"name": "list_stale_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| project | No | ||
| staleDays | No | ||
| repositoryId | Yes | ||
| protectedBranches | No |