Skip to content

Commit ea45027

Browse files
committed
feat(github): always return SHA and resource for get_file_contents
1 parent 0cf70eb commit ea45027

3 files changed

Lines changed: 166 additions & 251 deletions

File tree

pkg/github/__toolsnaps__/get_file_contents.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "Get file or directory contents",
44
"readOnlyHint": true
55
},
6-
"description": "Get the contents of a file or directory from a GitHub repository",
6+
"description": "Get the contents of a file or directory from a GitHub repository. For files, this tool always returns the file content as a resource and its SHA hash.",
77
"inputSchema": {
88
"properties": {
99
"owner": {
@@ -23,7 +23,7 @@
2323
"type": "string"
2424
},
2525
"sha": {
26-
"description": "Accepts optional commit SHA. If specified, it will be used instead of ref",
26+
"description": "Accepts optional commit SHA. If specified, it will be used to fetch the file at a specific version to avoid race conditions.",
2727
"type": "string"
2828
}
2929
},

0 commit comments

Comments
 (0)