Read File
read_fileDownload Canvas files and extract text from PDF, DOCX, PPTX, or plain text to read lecture slides, notes, and readings. Get file IDs from list_files or course_content.
Instructions
Download a Canvas file and return its text (lecture slides, notes, readings). Supports PDF, DOCX, PPTX, and plain text. Get file ids from list_files or course_content. Long files are truncated to max_chars.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Canvas file id, from list_files | |
| max_chars | No | Truncate extracted text to this length |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||