Read Course File
read_course_fileRead the text of a Canvas file so you can summarize it, quiz from it or answer questions about it. Read-only. Works with PDF, Word (.docx), PowerPoint (.pptx, including speaker notes), web pages and plain-text files up to 25 MB.
Instructions
Read the text of a Canvas file so you can summarize it, quiz from it or answer questions about it. Read-only. Works with PDF, Word (.docx), PowerPoint (.pptx, including speaker notes), web pages and plain-text files up to 25 MB. Long files come back in parts: call again with next_offset. Scanned PDFs have no text. Get file_id from list_course_files or list_module_items.
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": {
"file_id": "<file_id>"
},
"name": "read_course_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Character to start from, for reading the next part of a long file. Use next_offset from the previous call. Default 0. | |
| file_id | Yes | File ID (numeric string). Get it from list_course_files, list_my_files or list_group_files. | |
| max_chars | No | Most characters to return in one call. Default 30000, maximum 100000. |