Read file contents
canvas_read_fileDownload and extract readable text from Canvas course files (PDF, PPTX, DOCX, text, ZIP listings) server-side, returning page, slide, or section ranges so you can read course content directly.
Instructions
Download a course file server-side and return its text: PDF (per page), PPTX (per slide, with speaker notes), DOCX (per section), plain text/code, ZIP (listing). Give file_id, or url = any Canvas file link (e.g. https://canvas.school.edu/courses/1/files/2?verifier=…&wrap=1). Long documents: use pages (e.g. "1-5", "3,8-10") — the output says when it was truncated and which range to request next.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Canvas file URL or (file:<id>) reference, instead of file_id | |
| pages | No | Page/slide/section range, e.g. "1-5". Default: all | |
| file_id | No | ||
| course_id | Yes | ||
| max_chars | No | Default 40000 |