repo_file
Reads files at a ref: one file (path) or up to 20 parts (files) - whole files, line ranges or declarations (symbol: a function, class, method or type with its leading comment, found heuristically). Up to 204800 bytes per response, so large files are read in ranges via startLine/endLine (totalLines is returned); a failed part carries its own error without affecting the others.
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": {
"repositoryID": "<repositoryID>"
},
"name": "repo_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch, tag or sha; defaults to the default branch. | |
| path | No | Single file path from the repository root. | |
| files | No | Several parts: whole files, line ranges or declarations by name. | |
| symbol | No | Declaration name in the path file. | |
| endLine | No | Last line of the range for path, inclusive. | |
| startLine | No | First line of the range for path (1-based). | |
| lineNumbers | No | Include line numbers; default true. | |
| repositoryID | Yes | Repository ID. |