create-module-item
Add a new item to a Canvas module by specifying type, content ID, and optional settings. Supports file, page, discussion, assignment, quiz, subheader, external URL, and tool types.
Instructions
Add a new item to a module. Type must be one of: File, Page, Discussion, Assignment, Quiz, SubHeader, ExternalUrl, ExternalTool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The type of content to link | |
| title | No | Title of the item | |
| indent | No | Indent level (0-based) | |
| new_tab | No | Whether ExternalTool opens in a new tab | |
| courseId | Yes | The ID of the course | |
| moduleId | Yes | The ID of the module | |
| page_url | No | Page URL slug (required for Page type) | |
| position | No | Position in the module (1-based) | |
| content_id | No | ID of the content to link (required except for ExternalUrl, Page, SubHeader) | |
| external_url | No | External URL (required for ExternalUrl and ExternalTool types) | |
| completion_requirement_type | No | Completion requirement type | |
| completion_requirement_min_score | No | Minimum score for must_submit completion requirement |