patch-page-content
Fetch a Canvas page's HTML body along with natural-language edit instructions, ready to persist via apply-page-changes. Optionally includes the course styleguide for formatting.
Instructions
Fetch a page's current HTML body and return it alongside edit instructions for the model to apply. Does not write to Canvas — follow up with apply-page-changes to persist the result. Optionally includes the course styleguide for formatting reference. For full replacement, use update-page-content instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | 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) | |
| instructions | Yes | Natural language instructions for what changes to make to the page content (e.g., 'Update office hours to 2-4pm on MWF', 'Add a warning about the upcoming exam', 'Fix all typos') | |
| includeStyleguide | No | Inline the full course styleguide HTML for reference (off by default to save tokens; fetch it on demand with get-styleguide) |