Read a file from a public GitHub repository
read_github_fileReturns a file from a public GitHub repository (default: its README). Use when: you need a project's README, documentation or source file. Example: {"repo":"cloudflare/workers-sdk","path":"README.md"}
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": "read_github_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit. Default: the default branch | |
| path | No | File path. Default: the README | |
| repo | Yes | owner/name, e.g. cloudflare/workers-sdk | |
| start | No | ||
| max_chars | No |