github_file_get
Read one file from a connected repo.
Large files come back truncated with truncated=true. Requires memory:read. Same binding errors as github_repo_get.
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": {
"github": "<github>",
"path": "<path>"
},
"name": "github_file_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag, or commit. Omit for the default branch | |
| path | Yes | Path inside the repo, relative, no .. | |
| github | Yes | owner/repo the org's GitHub App serves |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||