github_get_file
Read a file's contents from a GitHub repository by owner, repo, and optional path/ref for read-only inspection; binary files return a notice.
Instructions
读取仓库中一个文件的内容(只读,二进制会提示)。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "github_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | 分支/标签/SHA,默认分支 | |
| path | No | 仓库内文件路径 | |
| repo | Yes | 仓库名 | |
| owner | Yes | 仓库所有者(用户或组织) |