read_course_file
Retrieve and extract text from any Canvas course file, including scanned PDFs via OCR, Word, PowerPoint, Excel, and plain text. Provide course and file IDs to get the content.
Instructions
Download and read the text content of a file from a Canvas course. Supports PDF (with OCR fallback for scanned PDFs), Word (.docx), PowerPoint (.pptx), Excel (.xlsx), and plain-text/HTML files. Use get_course_files to find file IDs.
Args: course_id: The numeric Canvas course ID. file_id: The numeric Canvas file ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"course_id": "<course_id>",
"file_id": "<file_id>"
},
"name": "read_course_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | uchile | |
| file_id | Yes | ||
| course_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |