Read a file or page
read_contentExtracts text from Canvas course files, pages, and module items, returning character totals and continuation instructions for long content so assistants can process course material in chunks.
Instructions
Reads the text of a course file (PDF, Word, PowerPoint with speaker notes, Excel, HTML, plain text), a Canvas page, or a module item. Long text is budgeted: the result gives totalChars and the exact call to continue (nextOffset). If the text is empty, thin or garbled, call get_file_page for the same file to look at the pages. Video and audio are not read; the link is returned.
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": {
"courseId": "<courseId>"
},
"name": "read_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | ||
| offset | No | ||
| pageUrl | No | ||
| courseId | Yes | ||
| maxChars | No | ||
| moduleItemId | No |