repo.open_file
Read a line range from a source file. Returns numbered lines. Specify start and end line to focus on a specific section.
Instructions
Read a line range from a source file. Returns numbered lines. Specify start_line and end_line to read a focused range rather than the entire 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": {
"path": "<path>"
},
"name": "repo.open_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Repository-relative file path (e.g. 'src/server.py'). | |
| end_line | No | Last line to read, inclusive. | |
| start_line | No | First line to read, 1-indexed (default 1). |