Edit a site
iter0_edit_siteMake one focused change to a saved iter0 design: pass its designId and the change as prompt. iter0 loads the current page itself and saves the edit as the design's current page; the card offers Undo. For a page the person pasted into the chat (no designId), pass that page exactly as currentHtml; the revised HTML comes back and no saved design changes. Costs 0.5 credits. The first call returns a price quote and changes nothing; the edit runs only when the person confirms that quote, in the card or by saying yes in chat, and iter0_confirm_paid_action redeems it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The focused edit instruction. At most 32,000 UTF-8 bytes. | |
| designId | No | The owned design to edit, from iter0_get_design or iter0_list_my_designs. iter0 loads its current page and saves the edit as its current page. | |
| sectionId | No | The section ID from iter0_get_design or iter0_get_site_status for the same designId; replaces selectedAreas. | |
| approvalId | No | Compatibility receipt for a quote already confirmed in iter0. New quotes are redeemed with iter0_confirm_paid_action. | |
| currentHtml | No | A page the person pasted into the chat, used when there is no designId. A saved design is edited by designId; iter0 loads its page. At most 2,000,000 UTF-8 bytes. | |
| referenceUrl | No | Optional visual reference. At most 2,048 UTF-8 bytes. | |
| selectedAreas | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||