read_file
Fetch an indexed file or specific line range by repository-relative path to view surrounding context after search_knowledge_base, subject to read permissions.
Instructions
Read an indexed file (or a line range of it) by repository-relative path.
Use after search_knowledge_base to see surrounding context. Only files in the index that you have permission to read are available.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| end_line | No | ||
| start_line | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |