You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/get_file_blame.snap
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,13 @@
3
3
"readOnlyHint": true,
4
4
"title": "Get file blame information"
5
5
},
6
-
"description": "Get git blame information for a file, showing the commit that last modified each line. Ranges share commit metadata via the top-level 'commits' map keyed by SHA. Use 'start_line'/'end_line' to restrict the result to a window of the file, and 'page'/'perPage' to page through returned ranges. Matching ranges are capped at 1000; when the cap is hit 'truncated' is set to true and 'total_ranges' reports the pre-cap match count.",
6
+
"description": "Get git blame information for a file, showing the commit that last modified each line. Ranges share commit metadata via the top-level 'commits' map keyed by SHA. Use 'start_line'/'end_line' to restrict the result to a window of the file, and 'perPage'/'after' to cursor-page through returned ranges. Matching ranges are capped at 1000; when the cap is hit 'truncated' is set to true and 'total_ranges' reports the pre-cap match count.",
7
7
"inputSchema": {
8
8
"properties": {
9
+
"after": {
10
+
"description": "Cursor for pagination. Use the endCursor from the previous page's PageInfo for GraphQL APIs.",
11
+
"type": "string"
12
+
},
9
13
"end_line": {
10
14
"description": "Optional 1-based ending line of the window of interest. Must be \u003e= start_line when both are provided.",
11
15
"minimum": 1,
@@ -15,11 +19,6 @@
15
19
"description": "Repository owner (username or organization)",
16
20
"type": "string"
17
21
},
18
-
"page": {
19
-
"description": "Page number for pagination (min 1)",
20
-
"minimum": 1,
21
-
"type": "number"
22
-
},
23
22
"path": {
24
23
"description": "Path to the file in the repository, relative to the repository root",
returnutils.NewToolResultError("page must be >= 1 when provided"), nil, nil
2370
-
}
2394
+
returnutils.NewToolResultError("This tool uses cursor-based pagination. Use the 'after' parameter with the 'endCursor' value from the previous response instead of 'page'."), nil, nil
0 commit comments