read_project_file
Read a specific file from the project using its relative path, optionally selecting start and end lines to display a range with line numbers.
Instructions
Reads the contents of a specific file within the project safely with line numbers.
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": {
"relative_path": "<relative_path>"
},
"name": "read_project_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_line | No | Optional end line number (inclusive) | |
| start_line | No | Optional start line number (1-based) | |
| relative_path | Yes | Relative path of the file to read (e.g. 'src/index.ts') |