read_file_range
Retrieve a specified line range from a workspace-relative UTF-8 text file to review code or planning context while keeping access read-only and sandboxed.
Instructions
Read a bounded line range from one allowed workspace-relative UTF-8 text 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": "read_file_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| endLine | No | ||
| maxBytes | No | ||
| maxLines | No | ||
| startLine | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes | Yes | ||
| content | Yes | ||
| endLine | Yes | ||
| startLine | Yes | ||
| truncated | Yes | ||
| totalLines | Yes |