Add a page to a website
add_page_to_siteGenerate a new page inside an existing website and save it as a draft. Use this rather than create_page whenever the page belongs to a site, so it inherits the site's brand and is served under the site's domain. The home page is the one with slug "index". Find site ids with list_sites.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | URL slug, e.g. "about" or "blog/launch". Lowercase words and hyphens; may nest with "/". Use "index" for the home page. Derived from the title when omitted, and de-duplicated against existing pages either way. | |
| brief | Yes | What the page should contain: its purpose, audience, sections, and call to action. The richer this is, the better the page. | |
| title | Yes | Page title, e.g. "About us". Shown in the dashboard. | |
| siteId | Yes | The site to add the page to (id from list_sites). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| path | Yes | Path within the site, e.g. "/about". | |
| slug | Yes | The slug actually used, which may differ from the one requested: it is normalised and de-duplicated against existing pages. | |
| title | Yes | ||
| pageId | Yes | Page UUID. Pass to get_page / edit_page. | |
| siteId | Yes | ||
| status | Yes | ||
| editUrl | Yes | ||
| finalized | Yes | False when the page generated and saved but its dashboard record didn't finish updating. The page itself is fine; the list may lag. | |
| previewUrl | Yes | Shareable link that works immediately. |