github_read
Read a GitHub repository's README, any file, or a directory listing by passing an owner/repo or github.com URL. Use find or offset to locate and continue through long files.
Instructions
Read from a GitHub repository: its README (no path), a file, or a directory listing. Accepts 'owner/repo' or any github.com URL (blob/tree links included). Use 'find' / 'offset' for long files.
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": "github_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit (default: the repo's default branch) | |
| find | No | Return only the parts of the file that mention this text | |
| path | No | File or directory path in the repo (omit for the README) | |
| repo | Yes | 'owner/repo' or a github.com URL (e.g. https://github.com/o/r/blob/main/src/x.ts) | |
| offset | No | Character offset to continue a long file from | |
| maxChars | No | Max characters to return (500–50000, default 12000) |