create_new_site
Submit the complete one-shot HTML document for the project's HOMEPAGE.
Call create_project first and follow its build_instructions; pass the full document ( through ) as html in ONE call. Returns preview_url, auto_fixed, and needs_attention items to fix via apply_dom_ops.
ALSO how you REBUILD an existing homepage. The document replaces whatever index.html currently holds, so call this again with a full document to redesign it wholesale -- replace_page refuses index.html by design (422), and that refusal is not a dead end. Use apply_dom_ops for small edits and this for a rewrite; never try to reconstruct a redesign out of dozens of dom ops.
The document may include client-side app logic in blocks, wired via addEventListener (inline on*= handlers are stripped by the save sanitizer). Every visible control must actually work in the submitted document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | ||
| project_guid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||