canvas_download_submissions
Downloads every file attachment for a Canvas assignment to a local folder, naming files by user ID and filename so instructors can grade or archive submissions.
Instructions
Download every file attachment for an assignment to a local folder.
Writes files to disk on the machine running this server. Each lands as
<dest_dir>/<assignment_id>/<user_id>__<filename> so the owner stays
attached to the file without putting a student name in a path.
FERPA: this copies student work out of Canvas onto local storage. Make sure the instructor knows where it is going and cleans it up afterwards.
Args: assignment_id: numeric assignment id. dest_dir: destination folder; defaults to CANVAS_DOWNLOAD_DIR, or ./canvas-downloads. course_id: numeric course id; defaults to CANVAS_DEFAULT_COURSE_ID. max_files: safety cap on how many files to pull (default 100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_dir | No | ||
| course_id | No | ||
| max_files | No | ||
| assignment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |