upload_course_file
Upload a local file to a Canvas course. The returned file ID can be used to add the file as a module item or attach it to a conversation.
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).
Args:
course_identifier: Course code or Canvas ID
file_path: Absolute path to the local file to upload
folder_path: Canvas folder path (default: "course files" root)
display_name: Override the filename shown in Canvas
on_duplicate: "rename" (default) or "overwrite"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_identifier | Yes | ||
| file_path | Yes | ||
| folder_path | No | ||
| display_name | No | ||
| on_duplicate | No | rename |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |