Upload Comment Attachment
upload_comment_attachmentUpload a local file to attach to a submission comment. Returns a file ID; the file stays hidden until you call post_submission_comment with that ID in file_ids.
Instructions
Upload a local file so it can be attached to a comment on your submission. Returns a file ID; nothing is visible to anyone until you call post_submission_comment with that ID in file_ids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| course_id | Yes | Canvas course ID, a numeric string such as "12345". Get it from list_courses. | |
| file_path | Yes | Absolute path of the local file to upload, e.g. "C:/Users/me/essay.pdf". | |
| assignment_id | Yes | Assignment ID (numeric string). Get it from list_assignments or list_upcoming_assignments. |