read_text_file
Read raw UTF-8 text or code from a file in 64 KiB chunks using a byte offset, keeping binary content out of context. Use it to inspect Markdown, CSV, JSON, or source files.
Instructions
Read raw UTF-8 text from a plain-text or code file (Markdown, CSV, JSON, source code), up to 64 KiB per call starting at a byte offset; call again with a larger offset to read further. Does not load binary content into context. For PDF and Office documents use read_document_text, which reads their extracted text; for images use view_image. Requires files:download.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | absolute node path instead of node_id | |
| offset | No | byte offset, default 0 | |
| node_id | No | text file node UUID | |
| max_bytes | No | maximum bytes to return, default and maximum 65536 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eof | Yes | ||
| text | Yes | ||
| offset | Yes | ||
| sha256 | No | ||
| next_offset | Yes |