Start a draft of a page
create_page_draftMake a private copy of ONE page — any page, including the home page ("/") — to experiment on without changing the live page. THIS is the tool for "try a different version of the homepage/about page", "show me an alternative hero", "let's experiment before we change it": create a draft, edit the draft, and call promote_page_draft only when the user approves. Do NOT use import_design_variation for that — it adds a whole-site design, which drops every inner-page edit made meanwhile when it is switched in. The draft gets its own copy of the page's text (content_key), so editing it never changes what visitors see. Shared blocks — header, footer, theme — stay shared: editing those changes every page. Returns the draft's slug and the exact calls that edit it (how_to_edit): patch_variation_content under content_key for copy, update_variation_file with file = the draft slug for code, or refine_site with page = the draft slug. Up to 4 drafts per page. If Mondovo cannot keep a copy separate from the live page it refuses and says why in message — pass that sentence to the user as it is. Recorded in version history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | What to call the draft, e.g. "Shorter version". Defaults to "Version N". | |
| site_id | Yes | The site the page belongs to | |
| page_slug | Yes | The live page to copy, e.g. "/about", or "/" for the home page. | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. | |
| variation_id | No | Design the draft belongs to, from list_variations. Defaults to the active design. | |
| from_draft_slug | No | Copy an existing draft of this page instead of the live page. |