Publish a site
publish_sitePublishes uploaded files as a new version of an existing site, replacing what it serves. The previous version stays available for restoring from the Sofast dashboard.
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": "<site>",
"upload_id": "<upload_id>"
},
"name": "publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The site: its numeric id, its address (name.sofast.website or a custom domain) or its URL. | |
| upload_id | Yes | The upload_id returned by upload_files, whose files become the site's content. |