canvas_download_file
Downloads a Canvas course file from a valid Canvas file URL, saving it to the local download directory or returning a signed download link on hosted servers.
Instructions
Download a Canvas file. url is the absolute URL from canvas_list_course_files (only file URLs on the configured Canvas host are accepted). On a local install the file is written to disk inside the download directory (CANVAS_OUTPUT_DIR, default ~/Downloads) — at destinationPath if given, else under its own name. On a hosted server it comes back as a signed, expiring download link (an image small enough is shown inline); give the link to the user.
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": {
"url": "<url>"
},
"name": "canvas_download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The url field returned by canvas_list_course_files (an https /files/ URL on the configured Canvas host; anything else is refused). | |
| overwrite | No | ||
| destinationPath | No | Local installs: where to write the file. Must be inside the download directory (CANVAS_OUTPUT_DIR, default ~/Downloads); a relative path is resolved against it. Omit it to save under the file's own name there. Ignored on a hosted server, which returns a download link instead. |