list_commits
List local git commits with optional filters for author, date, and count. Returns commit SHA, message, author, date, and repo name.
Instructions
List git commits from a local repository.
Returns commit summaries with sha, message, author, date, and repo name. No ADO connection is needed.
Args: repo_path: Absolute path to the local git repository. authors: Optional list of author names/emails to filter by. since: Optional date string to filter commits after (e.g. "2026-01-01"). max_count: Maximum number of commits to return (default 100).
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": {
"repo_path": "<repo_path>",
"authors": "<authors>",
"since": "<since>",
"max_count": "<max_count>"
},
"name": "list_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| authors | Yes | ||
| since | Yes | ||
| max_count | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |