file_history
Track recent commits that changed a file, including added and deleted lines, even for deleted files.
Instructions
Most recent commits that changed a file, newest first, with the lines each commit added to and deleted from it. Works for deleted files too.
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": {
"repo": "<repo>",
"path": "<path>"
},
"name": "file_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the repository root | |
| repo | Yes | Repository alias, see the git-insights://repos resource | |
| limit | No | Maximum number of items to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| repo | Yes | ||
| commits | Yes | Newest first |