read_range
Read a specific line range from a file. Use when you know exact lines to reduce token consumption.
Instructions
Read a specific line range from a file. Use when you know exact lines — lighter than reading the whole 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>",
"start_line": "<start_line>",
"end_line": "<end_line>"
},
"name": "read_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path | |
| start_line | Yes | Start line (1-indexed) | |
| end_line | Yes | End line (1-indexed, inclusive) | |
| session_id | No | Optional Claude Code session_id for cross-restart dedup (see smart_read). | |
| force | No | Bypass dedup (see smart_read.force). |