Publish static HTML to a Cloud site
deployPublishes self-contained HTML to one Cloud site this account owns and replaces that site’s live static page. Pass projectId instead of html to send a saved Studio page. Public env vars for that site are written into the page. Private values are not. Use deploy to make a page public. Use project to read or save source without publishing, create_project to create the site, and POST /api/cloud/v1/{siteId} with a Cloud deploy key for ZIP uploads. Cloud is not a Node host and has no server runtime.
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": {
"siteId": "<siteId>"
},
"name": "deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Complete self-contained HTML document, 180 KB or smaller. Omit when projectId is set. | |
| siteId | Yes | UUID of a Cloud site this account owns. The published HTML for that site is replaced. | |
| projectId | No | Optional Studio project UUID. Sends that saved page instead of html. Does not publish when the Studio page is empty. |