Git Blame
git_blameIdentify who last modified each line of code and when. Filter specific line ranges in large files to trace authorship changes and determine code ownership.
Instructions
Show line-by-line authorship information for a file, displaying who last modified each line and when. For large files, use startLine/endLine to limit output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the Git repository. Defaults to session working directory set via git_set_working_dir. | . |
| file | Yes | Path to the file to blame (relative to repository root). | |
| startLine | No | Start line number (1-indexed). | |
| endLine | No | End line number (1-indexed). | |
| ignoreWhitespace | No | Ignore whitespace changes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Indicates if the operation was successful. | |
| file | Yes | The file that was blamed. | |
| lines | Yes | Array of blame information for each line. | |
| totalLines | Yes | Total number of lines in the output. |