design_page_draft
Design or edit a web part page with AI (PRO+ feature). Call with { pageId, prompt } to GENERATE a proposed page design from a natural-language instruction, the tool returns the proposed Puck Data content plus a diff (removed parts + added external links) WITHOUT saving it. Then call with { pageId, draft, expectedUpdateRevision } to APPLY that reviewed draft; if the diff removes parts or adds non-first-party external links the apply is REFUSED with requiresConfirmation until you re-send it with acknowledgeChanges: true. A "Before AI edit" version is snapshotted before the write. Requires contribute access. Publish separately with publish_page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft | No | The reviewed proposed content to APPLY (from a prior generate call). Omit when generating. | |
| pageId | Yes | Page id (create the page first with create_page for a brand-new page). | |
| prompt | No | Natural-language design instruction (required to GENERATE). Omit when applying a draft. | |
| promptText | No | Optional: the original prompt, so the apply-time link allowlist matches the preview. | |
| acknowledgeChanges | No | Set true to apply despite removed parts / added external links (after reviewing the diff). | |
| expectedUpdateRevision | No | Required when applying a draft: the updateRevision from get_page. |