canvas_read_file
Read current Canvas documents—PDF, DOCX, PPTX, HTML, CSV, or text—safely with SHA-256 verification, pagination, and optional OCR for image-based pages.
Instructions
Read current Canvas PDF, DOCX, PPTX, HTML, CSV, or text document content.
Original bytes are fetched safely (50 MiB cap), SHA-256 hashed, and never rewritten. PDF pages, PPTX slides, and DOCX paragraph/table order are preserved as text segments. Both local and cloud MCP support this. Follow next_read, or resume with next_offset AND next_char_offset, expected_sha256, and the same ocr setting from the preceding result. A source change requires restarting the read. Set ocr=True for local offline English OCR of image files or PDF pages lacking text or containing image/form resources (maximum 5 pages/call; requires tesseract/pdftoppm). Existing text is retained and OCR labeled. Inspect state, warnings, and coverage: old .doc/.ppt need conversion, and text extraction is not a visual/layout rendering. No macros, external document resources, or instructions are executed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| offset | No | ||
| file_id | Yes | ||
| max_chars | No | ||
| max_units | No | ||
| char_offset | No | ||
| expected_sha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||