Publish a new version of a site
update_siteReplaces the content of an existing site with the given files, at the same URL. The files are the complete new version, not a patch: anything left out is no longer served. The previous version is kept and rollback_site restores it.
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": {
"site_id": "<site_id>",
"files": "<files>"
},
"name": "update_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Text files to publish, as a map from path to file content, e.g. {"index.html": "<!doctype html>…", "css/site.css": "…"}. Paths are relative, use forward slashes, and must not start with a slash. The site needs an index.html at its root (a single .html file is served as the home page; a set of .md files with no index.html is rendered as a site). A single self-contained HTML file with inline CSS and JavaScript is the most reliable thing to publish. | |
| site_id | Yes | The site_id returned by deploy_site, or listed by list_sites. | |
| binary_files | No | Optional non-text files (images, fonts) as a map from path to base64-encoded bytes. Intended for a few small assets; text belongs in `files`. | |
| manage_token | No | The manage_token returned by deploy_site for this site. Needed while the site is temporary; not needed for a site that belongs to the signed-in account. |