Read a file
read_fileReads a text file. An optional line range can be specified (1-based). Large files are truncated.
Instructions
Reads a text file. An optional line range can be specified (1-based). Large files are truncated.
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 |
|---|---|---|---|
| page | No | For PDF files: 1-based page number to read (default: all pages) | |
| path | Yes | File path | |
| end_line | No | Last line (inclusive) | |
| start_line | No | First line (1-based) |