canvas_create_assignment
Creates a Canvas course assignment with due dates, points, and submission types; defaults to unpublished so students see it only after publishing.
Instructions
Create an assignment. MUTATES the course.
Defaults to UNPUBLISHED so students do not see it until you publish — pass published=True only when the instructor says it is ready.
Args: name: assignment title. description: body HTML shown to students. points_possible: max score; omit for an ungraded assignment. due_at: ISO 8601 UTC, e.g. 2026-09-10T04:59:59Z. Canvas stores UTC, so an 11:59pm local deadline is not 23:59Z — convert first. unlock_at: ISO 8601 UTC; students cannot see it before this. lock_at: ISO 8601 UTC; submissions close after this. submission_types: comma-separated, from online_text_entry, online_upload, online_url, online_quiz, discussion_topic, media_recording, student_annotation, on_paper, external_tool, none. grading_type: points (default), percent, letter_grade, gpa_scale, pass_fail, not_graded. published: visible to students immediately (default False). assignment_group_id: group to file it under; see canvas_list_assignment_groups. omit_from_final_grade: True to score it without affecting the total. course_id: numeric course id; defaults to CANVAS_DEFAULT_COURSE_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| due_at | No | ||
| lock_at | No | ||
| course_id | No | ||
| published | No | ||
| unlock_at | No | ||
| description | No | ||
| grading_type | No | ||
| points_possible | No | ||
| submission_types | No | online_text_entry | |
| assignment_group_id | No | ||
| omit_from_final_grade | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |