canvas_file_original
Retrieve the original, unmodified Canvas file by file ID with exact bytes and SHA-256 to view scanned PDFs/images or preserve ZIPs and code archives.
Instructions
Retrieve the ORIGINAL, unmodified file for a Canvas file_id (from canvas_files, canvas_file, or a /files/ link inside a page or assignment), as an MCP resource with its exact bytes and SHA-256. Use it (1) for scanned or handwritten PDFs and images with no text layer: read the resource and view the pages as images; (2) when the user wants the original ZIP or other file itself, e.g. to unpack it, run or compile the code in a sandbox, or keep the archive. To just read what is inside a ZIP, canvas_file_content is simpler: it unpacks on the server. Only accepts a Canvas file ID, never a URL. Maximum 15 MiB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Canvas file id, from canvas_files, canvas_find_files or a module item. |