Save website files
save_website_filesAdds or replaces files on a website and checks every page against the rules start_website returned. Files not sent stay as they are; delete_website_file removes one, and edit_website_file changes part of one. Never send a photo here as base64: one photo is hundreds of thousands of characters, slow and costly to write; the person adds photos at the photoLink start_website returned, and save_website_pictures saves pictures you hold as files or at an https address. If you can run commands with internet access, write the website in a folder and send it all at once, photos included, to siteZip instead of typing every file here. Returns the viewUrl, keepUrl, pages, passed, and problems naming each rule a page breaks; the person can keep the website once passed is true. A website holds up to 40 files and 12 MB, with pages up to 300 KB and other files up to 2 MB.
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>",
"files": "<files>"
},
"name": "save_website_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | 1 to 40 files to add or replace. A file whose path is already saved is overwritten. | |
| editKey | No | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. | |
| websiteId | Yes | The websiteId start_website returned, or one list_sites shows. |