list_commits
List recent commits on a branch with file-level diff content for each commit, enabling change review and commit history inspection in Azure DevOps.
Instructions
List recent commits on a branch including file-level diff content for each commit
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>",
"branchName": "<branchName>"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of commits to return (Default: 10) | |
| skip | No | Number of commits to skip from the newest | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| branchName | Yes | Branch name to list commits from | |
| repositoryId | Yes | The ID or name of the repository | |
| organizationId | No | The ID or name of the organization (Default: mycompany) |