nsd_update
Replace ALL files of an existing site with the given HTML or files. Older versions are kept and can be restored from the dashboard. Same rule as nsd_publish: anything containing , on*= attributes or javascript: must be sent as files with encoding "base64", or the hosting firewall refuses it with 403.
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>"
},
"name": "nsd_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Full HTML of the new home page, plain text, only when it has no <script> or on*= attributes; otherwise use files with encoding "base64". | |
| files | No | ||
| site_id | Yes | The site id from nsd_list_sites. |