Read File
read_fileDownloads a Canvas file and extracts its text—lecture slides, notes, readings. Supports PDF, DOCX, PPTX, and plain text. Long files are truncated to max_chars.
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 | |||