Read file or folder
get_file_contentsRead a file's text, or list a folder (the repository root when path is empty), at a branch, tag or commit (default branch when ref is left out). Use startLine/endLine to read part of a long file.
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": {
"owner": "<owner>",
"repo": "<repo>"
},
"name": "get_file_contents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or commit SHA. | |
| path | No | File or folder path, without a leading slash. | |
| repo | Yes | Repository slug. | |
| owner | Yes | Namespace that owns the repository (user or organization handle). | |
| endLine | No | ||
| startLine | No |