Read File Text
read_file_textReads a text file line by line, letting you request a specific starting line and limit the number of lines returned. Useful for inspecting or extracting portions of large files.
Instructions
Read a text file by lines.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | file path | |
| limit | No | max lines to return (None = rest of file) | |
| offset | No | 0-based starting line | |
| encoding | No | text encoding (invalid bytes are replaced) | utf-8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |