Read file
read_fileRead text file contents from a configured scope, optionally restricting output to a line range. Provides controlled file access for development tools.
Instructions
Read a text file inside the configured scope. Optionally restrict to a 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": {
"path": "<path>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Relative path from the configured scope root | |
| startLine | No | 1-based, inclusive. Returns from this line onwards. | |
| endLine | No | 1-based, inclusive. Returns up to and including this line. |