read_document_text
Read extracted text from PDF, Office, or text files in chunks up to 50,000 characters without downloading, then use next_offset to continue.
Instructions
Read the extracted text of a PDF, Office or text file in chunks of up to 50000 characters, without downloading the file. Use next_offset to continue. For plain-text and code files where the exact bytes matter, prefer read_text_file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | absolute node path instead of node_id | |
| offset | No | character offset, default 0 | |
| node_id | No | file node UUID | |
| max_chars | No | maximum characters to return, default 20000, maximum 50000 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eof | Yes | ||
| name | Yes | ||
| page | No | page where this chunk starts, for PDFs | |
| text | Yes | ||
| total | Yes | total characters of extracted text | |
| offset | Yes | ||
| truncated | No | the document was longer than the indexed text; only the beginning is available | |
| next_offset | Yes |