canvas_create_module_item
Add content like assignments, quizzes, or pages to a Canvas course module by providing the matching ID field for each item type.
Instructions
Add an item to a module. MUTATES the course.
Which id field you need depends on item_type: Assignment / Quiz / Discussion / File -> content_id (the object's id) Page -> page_url (the slug) ExternalUrl / ExternalTool -> external_url SubHeader -> neither; title is the item
Args: module_id: numeric module id. title: item label shown in the module list. item_type: one of Assignment, Quiz, File, Page, Discussion, SubHeader, ExternalUrl, ExternalTool. content_id: id of the linked object, for the types that need one. page_url: page slug, for item_type=Page. external_url: target, for item_type=ExternalUrl or ExternalTool. position: 1-based slot within the module; omit to append. indent: nesting level, 0 for top level. course_id: numeric course id; defaults to CANVAS_DEFAULT_COURSE_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| indent | No | ||
| page_url | No | ||
| position | No | ||
| course_id | No | ||
| item_type | Yes | ||
| module_id | Yes | ||
| content_id | No | ||
| external_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |