Save a website into storage
spark_save_site_to_storageCopy the Spark-style site files that are live on a domain (index.html, other pages, styles.css) into an Object Storage bucket folder, as a backup or to keep editing from there. Replaces same-named files in that folder. 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": {
"storage_service_id": "<storage_service_id>",
"region": "<region>",
"bucket": "<bucket>"
},
"name": "spark_save_site_to_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | Yes | ||
| domain | No | ||
| prefix | No | Folder to save into (default "sites/<domain>/"). | |
| region | Yes | ||
| confirm | No | Must be true. Set it only after the customer has explicitly confirmed this exact change. | |
| service_id | No | Hosting service id, as returned by the matching list tool. | |
| storage_service_id | Yes | Object Storage service id, as returned by the matching list tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saved | No | ||
| bucket | No | ||
| prefix | No |