Skip to content

Commit fce6475

Browse files
committed
feat: add get_file_blame tool to README and tools list
1 parent 9244774 commit fce6475

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,6 +1205,17 @@ The following sets of tools are available:
12051205
- `repo`: Repository name (string, required)
12061206
- `sha`: Commit SHA, branch name, or tag name (string, required)
12071207

1208+
- **get_file_blame** - Get file blame information
1209+
- **Required OAuth Scopes**: `repo`
1210+
- `end_line`: Optional 1-based ending line of the window of interest. Must be >= start_line when both are provided. (number, optional)
1211+
- `owner`: Repository owner (username or organization) (string, required)
1212+
- `page`: Page number for pagination (min 1) (number, optional)
1213+
- `path`: Path to the file in the repository, relative to the repository root (string, required)
1214+
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
1215+
- `ref`: Git reference (branch, tag, or commit SHA). Defaults to the repository's default branch (HEAD). (string, optional)
1216+
- `repo`: Repository name (string, required)
1217+
- `start_line`: Optional 1-based starting line of the window of interest. Only ranges overlapping [start_line, end_line] are returned, clamped to the window. (number, optional)
1218+
12081219
- **get_file_contents** - Get file or directory contents
12091220
- **Required OAuth Scopes**: `repo`
12101221
- `owner`: Repository owner (username or organization) (string, required)

pkg/github/tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ func AllTools(t translations.TranslationHelperFunc) []inventory.ServerTool {
184184
ListCommits(t),
185185
SearchCode(t),
186186
GetCommit(t),
187+
GetFileBlame(t),
187188
ListBranches(t),
188189
ListTags(t),
189190
GetTag(t),

0 commit comments

Comments
 (0)