git_log
Retrieve commit history for a repository or specific file, with optional limits on the number of commits shown. Use it to inspect changes and track project evolution.
Instructions
Show commit logs
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": "git_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Show commits for a specific file | |
| maxCount | No | Maximum number of commits to show | |
| repoPath | No | Path to git repository (defaults to current directory) |