List page drafts
list_page_draftsList the drafts of a page — private copies someone is trying out before making them live — or, with no page_slug, every page in the design that has drafts. Each draft comes back with its slug (what update_variation_file / refine_site target), its name, the live page_slug it belongs to, and its content_key (the draft's own text, for patch_variation_content). design.variation_index is the index to pass to those edit tools. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site to read | |
| page_slug | No | Only this page's drafts, e.g. "/about" or "/" for the home page. Omit to list every page that has drafts. | |
| 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. |