File history
file_historyList commits that touched a given file, newest first, including hash, date, author, subject and line changes, while following renames across repository history.
Instructions
List the commits that touched one file, newest first: short hash, date, author, subject, and lines added/deleted per commit. Follows the file across renames (rename commits include a 'renamed_from' key).
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_path": "<repo_path>",
"file": "<file>"
},
"name": "file_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path relative to the repository root, e.g. 'src/app.py' (an absolute path inside the repository also works). | |
| limit | No | Maximum number of commits to return. | |
| repo_path | Yes | Absolute path to a local git repository, or to any folder inside one (a sub-folder scopes the analysis to it). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||