read_file
Reads a single text file from a GitHub repository, truncating content at a specified byte limit and reporting truncation instead of returning oversized data.
Instructions
Read one text file. Truncates at max_bytes and says so, rather than returning a file too large to be useful.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | branch, tag or commit SHA | |
| path | Yes | path within the repository | |
| repo | Yes | owner/name or a github.com URL | |
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||