Read File
read_fileRead a text file by path, using offset and limit for specific line ranges or head/tail for first or last lines; output is capped near 100,000 characters to continue later.
Instructions
Read a text file (not a directory or a binary file). Output is capped at about 100,000 characters; a longer file ends with the offset to continue from. Use offset and limit for a range of lines, head for the first N lines or tail for the last N (use only one of the three).
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 |
|---|---|---|---|
| head | No | Return only the first N lines. | |
| path | Yes | Absolute path, or relative to the server's working directory. | |
| tail | No | Return only the last N lines. | |
| limit | No | Most lines to return, counting from offset. | |
| offset | No | Line number to start reading from (1-based). |