file_history
Trace a file's commit history newest first, with rename tracking and line additions/deletions per commit.
Instructions
Commits that touched a file, newest first, following it across renames (reports the earlier names). Shows lines added/deleted per commit.
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": "file_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | HEAD | |
| path | Yes | ||
| repo | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |