Site change
edit-siteUse this when the user wants to change one of their WebTwizz sites: new sections or pages, copy, design, features, fixes, or an answer to a question WebTwizz asked. Sends the request to the site's WebTwizz AI, which edits the site, and shows the work live on the card. Uses the account's WebTwizz credits, and each call starts another change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Other files from this conversation the site should use: SVG logos, or documents like a menu, price list or notes (PDF, Word or text), which WebTwizz reads for their content. | |
| images | No | Pictures for the site, each as a link WebTwizz can download: photos or a logo the user shared, or a screenshot of a design to match. | |
| request | Yes | What to change, in the user's words plus any detail from the conversation that helps. | |
| site_id | Yes | The site's id, or its name. | |
| reference_url | No | A website the change should follow, like a page whose layout or style the user wants. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| plan | No | ||
| error | No | ||
| stage | No | ||
| steps | Yes | ||
| checks | No | ||
| job_id | Yes | ||
| latest | No | ||
| status | Yes | queued, starting, building, done, needs_input, failed or stopped | |
| choices | No | When the summary ends by offering numbered options: those options, for the user to pick one | |
| site_id | Yes | ||
| summary | No | ||
| live_url | No | ||
| open_url | Yes | ||
| question | No | ||
| compiling | No | The preview is still updating with the finished change | |
| follow_ups | Yes | Things the user still has to do in WebTwizz, like connecting a database or adding a key | |
| undo_guard | No | Pass as only_if_latest when undoing, so newer work is never lost | |
| preview_url | Yes | ||
| confirmation | No | Set while the build waits for the user to approve something; answer with confirm-action | |
| files_changed | Yes | ||
| preview_ready | Yes | Whether the draft preview is running right now | |
| undo_point_id | No | Pass to restore-version to undo this change; only set while nothing has changed since | |
| live_frame_url | No | ||
| elapsed_seconds | Yes |