Get recent git commits
git_get_recent_commitsRetrieve recent commits from a local git repository. Returns structured commit objects ready for changelog generation.
Instructions
Fetch the most recent commits from a local git repository. Returns structured commit objects that can be passed directly to git_generate_markdown_changelog.
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": {
"repoPath": "<repoPath>"
},
"name": "git_get_recent_commits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of commits to fetch (default 20, max 500) | |
| repoPath | Yes | Absolute or relative path to the local git repository |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| commits | Yes | ||
| repoPath | Yes |