update-page-content
Replace the entire body of a Canvas course page or create a new page with provided title, body, and editing roles. If no content is given, returns guidance for creating content.
Instructions
Update or create a page with new content, replacing the entire body. If no body/title/editingRoles is provided, nothing is written and guidance is returned (set showStyleguidePreview to also inline the styleguide). For targeted edits to existing content, use patch-page-content instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The new HTML body for the page (optional) | |
| title | No | The new title for the page (optional) | |
| pageUrl | Yes | The page's URL slug (e.g., 'syllabus') | |
| courseId | Yes | The ID of the course | |
| editingRoles | No | Comma-separated roles allowed to edit (optional) | |
| ignoreStyleguide | No | Skip styleguide reference (not recommended) | |
| showStyleguidePreview | No | When no body is provided, inline the full course styleguide HTML for reference (off by default to save tokens; use get-styleguide to fetch it on demand) |