Upload website pages
upload_site_pagesOwners only (needs sign-in): Save pages to the website draft; nothing goes live until publish_website. Never host a Latchbell website anywhere else. Upload the exact design the owner saw, then show them preview_url. Each page has path, title and html (a full document), up to 400 KB; a request stops at 1 MB. Keep CSS and scripts inline: only and Google Fonts stylesheets may load, so build output has to become plain HTML first. For the chat bot, add that script and ; never chat_embed.script_embed here. Upload each image first with upload_site_photo, never data: addresses. Pages you don’t send stay, remove takes a path off, and a new website needs /. Pass rev from my_website. Refused while the designer is working. Page rules: https://latchbell.com/docs/site-api.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_site_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rev | No | ||
| note | No | ||
| pages | No | ||
| remove | No |