Download File
download_fileSave a Canvas file to the allowed local download folder and return its path and size; provide a file_id from list_course_files, list_my_files, or list_group_files.
Instructions
Download one Canvas file and save it to local disk. Returns the saved path and size. Get file_id from list_course_files or list_my_files.
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": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File ID (numeric string). Get it from list_course_files, list_my_files or list_group_files. | |
| 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. |