Submit Assignment
submit_assignmentSubmit assignment work to Canvas, recording it against the deadline and making it visible to the instructor. Validate submission_type against allowed formats and confirm content before submission.
Instructions
Submits work to Canvas for an assignment. This is recorded against the deadline immediately, is visible to the instructor, and cannot be undone from here. Confirm the assignment and content with the user before calling. Check accepted formats with get_assignment first — submission_type must be one the assignment allows. For online_upload, file_ids must reference files already uploaded to Canvas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL for online_url | |
| body | No | Text content for online_text_entry | |
| file_ids | No | Canvas file ids for online_upload | |
| course_id | Yes | Course id | |
| assignment_id | Yes | Assignment id | |
| submission_type | Yes | One of: online_text_entry, online_url, online_upload |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||