Change the files of a website builder draft
write_website_filesUse this when someone asks to change their website builder draft: its wording, colours, layout or sections. Returns the new checkpoint, which saves every file given as one change that restore_website_checkpoint can undo; the dentist sees the draft in the app's website builder. Not for the settings of the public site.
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": {
"websiteId": "<websiteId>",
"parentCheckpoint": "<parentCheckpoint>",
"message": "<message>"
},
"name": "write_website_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to create or replace | |
| message | Yes | What changed, in the owner's words, such as Moved the reviews above the services. It names the checkpoint in the builder. | |
| websiteId | Yes | Website id, from get_website_settings | |
| deletedPaths | No | Files to delete | |
| parentCheckpoint | Yes | The checkpoint read_website_files read the files at. The change is refused when the website changed since. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| websiteId | Yes | ||
| builderUrl | Yes | ||
| checkpoint | Yes | The new checkpoint; null when every file was already as given | |
| changedPaths | Yes | ||
| parentCheckpoint | Yes |