Update a site
update_siteSaves a new draft of an existing site. Send the whole site as get_site returned it, with your changes: each block with its id and its props whole, items and images included: a field left out takes its default and an image left out is removed. A block with a new id is added, and a block left out is deleted, with no undo in the editor, so send every block back. stickers go back whole too; [] removes the layer. websiteBgColor, websiteBgImage and fontFamily left out stay as they are; null removes one. Set image fields using URLs the upload card reported or list_images returned for this site. Nothing is saved if the site changed since that revision or anything is invalid. The owner publishes the draft in the editor. A new site name applies right away but only renames the site in Stick: the published page's title is set under SEO.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"themeId": "<themeId>",
"blocks": "<blocks>",
"stickers": "<stickers>",
"siteId": "<siteId>",
"revision": "<revision>",
"name": "<name>"
},
"name": "update_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | null keeps the current name | |
| blocks | Yes | Top to bottom | |
| siteId | Yes | ||
| themeId | Yes | ||
| revision | Yes | The revision get_site returned | |
| stickers | Yes | The decorative GIPHY sticker layer; [] for none. | |
| editorUrl | No | As get_site returned it; ignored | |
| fontFamily | No | ||
| websiteBgColor | No | ||
| websiteBgImage | No |