upload_course_file
Upload a local file to a Canvas course, returning a file ID for use in module items or conversations. Specify course and file path, with options for folder, display name, and duplicate handling.
Instructions
Upload a file to Canvas course storage.
Uploads a local file to a Canvas course. The returned file ID can be used with add_module_item (item_type='File') or send_conversation (attachment_ids).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the local file to upload | |
| folder_path | No | Canvas folder path (default: "course files" root) | |
| display_name | No | Override the filename shown in Canvas | |
| on_duplicate | No | "rename" (default) or "overwrite" | rename |
| course_identifier | Yes | Course code or Canvas ID |