repo_get_file_history
Retrieve a file's git commit history to trace changes, authors, and commit messages; specify a maximum number of commits to limit results.
Instructions
Get git commit history for a file in the repository.
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": "repo_get_file_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path to file in workspace | |
| maxCommits | No | Max commits to retrieve (default 20) |