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.
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_file"
}
}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 | |||