Read files in a GitHub repository
gh_readRead a file, list a folder, or with recursive true list every file below a path, at a branch, tag or commit (default branch when ref is left out).
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>"
},
"name": "gh_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| path | No | File or folder; empty for the top. | |
| repo | Yes | owner/name, like shopwhizzy/client-shop (or a GitHub address). | |
| recursive | No |