read_file
Read the contents of a file by specifying its path, with optional start and end lines to limit the output to a range.
Instructions
Read the contents of a file. Optionally specify 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 | File path (absolute or relative to workspace root) | |
| start_line | No | First line to read (1-indexed, inclusive) | |
| end_line | No | Last line to read (1-indexed, inclusive) | |
| workspace_root | No | Workspace root directory (optional) |