github_get_file_contents
Retrieve file or directory contents from a GitHub repository using repo, path, and optional branch.
Instructions
Get contents of a file or directory from a repository
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_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory path within the repo | |
| repo | Yes | Owner/repo format | |
| branch | No | Branch name | main |