Read a file
repo_file_readReads raw file text from a CNB.cool repository at a given branch, tag, or commit, enabling inspection of code or configuration at a specific version.
Instructions
Read the raw text content of a file at a given ref (branch/tag/commit).
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>",
"ref": "<ref>",
"path": "<path>"
},
"name": "repo_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Branch, tag or commit SHA | |
| path | Yes | File path inside the repository, e.g. src/index.ts | |
| repo | Yes | Repository path, e.g. "owner/repo" or "group/subgroup/repo" |