read_text_file
Read plain-text files from a path, URL, or base64 data and return UTF-8 text with truncation status and token estimate, optionally capped by maxBytes.
Instructions
Read a plain-text file (.txt, .md, .json, .csv, .yaml, .log, code, etc.) from path / url / base64. Returns UTF-8 text plus a truncation flag and token estimate. Honors an optional maxBytes cap. For .docx use read_docx, for .pdf use read_pdf, for .xlsx use read_spreadsheet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| data | No | ||
| path | No | ||
| maxBytes | No | Optional cap on bytes to read. | |
| mimeType | No |