get_file
Retrieve file content from a repository, optionally specifying a line range to extract specific code sections for review or analysis.
Instructions
Get the content of a file from a repository, with optional line range.
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": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to repo root | |
| repo | Yes | Repository identifier (owner/repo) | |
| end_line | No | 0-indexed end line (inclusive) | |
| start_line | No | 0-indexed start line (inclusive) |