sync_course_files
Syncs Canvas course files to local directory by downloading new or changed files. Supports optional force re-download and source filtering.
Instructions
Sync (download) all files for a Canvas course to the local filesystem.
Behaves like "git pull" for course files — downloads new/changed files and skips unchanged ones. Set force=True to re-download everything.
Args: course_id: The Canvas course ID to sync. force: If True, overwrite existing files even if unchanged. sources: Content sources to include. Defaults to all (files, assignments, discussions, pages, modules). destination: Optional local directory path to save files to. ~ is expanded. Overrides the configured course path and default destination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | ||
| force | No | ||
| sources | No | ||
| destination | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |