github_get_file
Read one file from a GitHub repository (any branch, tag or commit). Passing a directory lists it.
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": {
"repo": "<repo>",
"path": "<path>"
},
"name": "github_get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit SHA (optional; default branch if omitted) | |
| path | Yes | File path in the repo, e.g. src/index.js | |
| repo | Yes | Repository as owner/name, e.g. "octocat/hello-world" (a github.com URL works too) |