get_commits
Retrieve recent commits from an Azure DevOps Git repository, with optional filters for branch, author, and maximum count.
Instructions
Get recent commits for a Git repository.
Args: project: Azure DevOps project name. Uses default if not specified. repository_id: The repository ID or name. branch: Optional branch name to filter commits. top: Maximum number of commits to return (default: 20). author: Optional author name to filter commits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | ||
| repository_id | No | ||
| branch | No | ||
| top | No | ||
| author | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |