read_file
Read text files from the workspace with optional line range selection.
Instructions
Read a text file from the workspace. Use list_files first to discover available files.
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 | File path relative to the workspace root. | |
| endLine | No | Optional 1-based ending line. | |
| startLine | No | Optional 1-based starting line. |