canvas_file_content
Read text from Canvas course files such as PDF, DOCX, PPTX, XLSX, plain text, code, and ZIP archives, with pagination and optional ZIP entry selection.
Instructions
Read text from a Canvas file: PDF text, DOCX, PPTX, XLSX, plain text or code, and ZIP archives (unpacked on the server: listing plus the text of every code/text/document file inside; pass entry to read one file from the listing). Max download 15 MiB; paginated text via offset. For scanned or handwritten PDFs use canvas_file_original. No external URL input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page to fetch: a number, or the next_page value returned by the previous call. | |
| entry | No | ZIP only: path of one file inside the archive, exactly as shown in the listing. | |
| offset | No | Character to start reading from; pass next_offset from the previous call to continue. | |
| file_id | Yes | Canvas file id, from canvas_files, canvas_find_files or a module item. | |
| max_chars | No | Most characters of text to return in this call (default 20000). |