read_file
Read files from approved local folders with SHA-256 verification, supporting text, PDF, DOCX, PPTX, XLSX, images, and range-limited extraction to prevent data loss.
Instructions
Read source with SHA-256 and ranges. Text: start/limit lines <=400, newline metadata for edits. PDF: pages <=5, mode=image renders one page, no OCR. DOCX: body blocks <=400. PPTX: slides <=20. XLSX: sheet and A1 cell_range <=2000 cells, formulas/caches without recalculation. Images return image content. mode=hash returns only SHA-256 for any permitted file <=64 MiB; mode=metadata avoids hashing/parsing. Never infer complete text from a truncated result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| path | Yes | ||
| limit | No | ||
| sheet | No | ||
| start | No | ||
| workspace | Yes | ||
| cell_range | No | ||
| expected_sha256 | No |