Export Course Archive
export_course_archiveExport a full Canvas course as an .imscc archive and download it to local disk before term access ends. Course content stays unchanged; packaging can take several minutes.
Instructions
Export a whole course, wait for Canvas to package it, then download the .imscc archive to local disk. Nothing in the course changes. Can take several minutes; use it before a term ends and access disappears. [NEEDS CONFIRMATION: call it once for a preview and a confirm_token, show the preview to the user, and only if they say yes call it again with the same arguments, confirm=true and that confirm_token. Apps that can ask the user directly show a confirmation instead.]
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>"
},
"name": "export_course_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true together with confirm_token to carry out a request you already previewed. | |
| dest_dir | No | Folder to save into: the server's download folder (CANVAS_DOWNLOAD_DIR) or a folder inside it, such as "week1". Anywhere else is refused. Leave it out to use the download folder itself. | |
| course_id | Yes | Canvas course ID, a numeric string such as "12345". Get it from list_courses. | |
| confirm_token | No | The one-time token from the preview. Only use it after the user has said yes. | |
| timeout_seconds | No | Default 300 |