git_commit_history
Retrieve and filter Git commit history by file, author, or date range to trace code changes and identify when bugs were introduced.
Instructions
View commit history with powerful filtering (by file, author, or date range). Returns structured data including commit hashes, timestamps, and messages. Use to understand code evolution or trace when bugs were introduced.
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": {
"path": "<path>"
},
"name": "git_commit_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root path of the git repository | |
| since | No | Optional: show commits since date (e.g., '2024-01-01', '2 weeks ago') | |
| until | No | Optional: show commits until date | |
| author | No | Optional: filter commits by author name | |
| filePath | No | Optional: filter commits by specific file path | |
| maxCount | No | Maximum number of commits to retrieve (default: 10) |