Submit Assignment File
submit_assignment_fileUpload a local file as a Canvas assignment submission, including instructor-visible comments, with a dry-run preview required before irreversible confirmation.
Instructions
Upload a local file and submit it to an assignment in one step. Your instructor sees it and it counts as a submission attempt. To upload now and submit later, use upload_submission_file. [IRREVERSIBLE: call without confirm=true first to preview, then re-call with confirm=true.]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | No | Comment text, visible to your instructor. | |
| confirm | No | Must be true to actually execute. Omit or set false to get a dry-run preview first. | |
| course_id | Yes | Canvas course ID, a numeric string such as "12345". Get it from list_courses. | |
| file_path | Yes | Absolute path to the local file | |
| assignment_id | Yes | Assignment ID (numeric string). Get it from list_assignments or list_upcoming_assignments. |