read_text_chunk
Reads bounded UTF-8 file chunks from a byte offset or file tail to inspect logs and growing files; resume from the returned cursor to fetch only appended data.
Instructions
Read a bounded chunk (up to 65536 bytes) of a UTF-8 text file starting at a byte offset, or the file's tail when offset is -1, inside the configured Owner read roots. Use for logs and growing files (read the tail first, then resume from the returned cursor to read only what was appended) or to resume a large read at an exact byte position. For walking a file forward page by page from the start, read_text_page is the simpler choice. Read-only; never creates or modifies files; no approval window.
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_text_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the target within the already-configured Owner read/edit roots; path alone grants no access. | |
| offset | No | Byte offset for streaming, -1 to 268435456; -1 requests a bounded tail (default -1). | |
| max_bytes | No | Maximum bytes per chunk, 4 to 65536; default 16384. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||