File history
file_historyTrace a file's commit history on HEAD, newest first, following renames and showing added/removed lines. Use it to see how a file evolved or who changed it and when.
Instructions
List the commits on HEAD that changed a single file, newest first, following the file across renames. Each commit includes the path it had then and lines added/removed. Useful for "how did this file evolve?" and "who reworked it, and when?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repository-relative path of a single file, as named at HEAD. | |
| repo | No | Repository name or absolute path from the allowlist. Defaults to the first configured repo. | |
| limit | No | Maximum number of results (1-100). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The requested path, as it is named at HEAD. | |
| repo | Yes | Name of the repository that was queried. | |
| commits | Yes | ||
| renamed | Yes | True if the file had a different path in a listed commit. | |
| truncated | Yes | ||
| commitCount | Yes |