Publish a website to hosting
spark_publish_sitePublish a small website the assistant wrote (index.html plus optional about, services, pricing, gallery, faq, contact .html and styles.css) into the public_html of the chosen domain (one hosting account can hold several, each with its own site). Content is checked and sanitised like Spark sites; existing index and same-named files are copied to a gh-backup folder first, nothing is deleted. No Spark charge. Give files, or read them from a bucket folder with storage_*. Needs confirm: true.
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_name": "<site_name>"
},
"name": "spark_publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Site files. Allowed names: index.html, about.html, services.html, pricing.html, gallery.html, faq.html, contact.html, styles.css. | |
| domain | No | Which domain gets the site: the main domain or any other domain on that hosting account (each has its own public_html). Without service_id, the account holding it is found. | |
| confirm | No | Must be true. Set it only after the customer has explicitly confirmed this exact change. | |
| site_name | Yes | Business or site name. | |
| service_id | No | Hosting service id, as returned by the matching list tool. | |
| storage_bucket | No | ||
| storage_prefix | No | Bucket folder that holds the site files, e.g. "sites/example.com/". | |
| storage_region | No | ||
| storage_service_id | No | Object Storage service (only when reading the files from a bucket) id, as returned by the matching list tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | ||
| written | No | ||
| warnings | No | ||
| backed_up | No | ||
| backup_dir | No | ||
| existing_site | No |