Publish page
publish_pagePublish a web page as the connected user. A siteId replaces an existing page at the same address. preserveFiles retains omitted assets and requires the baseDeploymentId of that version; stale edits are refused. Visibility is private (invitation-only, default) or public. Requires an authenticated AttachPage connection.
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": {
"files": "<files>"
},
"name": "publish_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Optional address label, 3-40 lowercase letters, digits or hyphens. Random when omitted. | |
| files | Yes | Files of the page. The complete resulting page includes index.html at the top level. | |
| siteId | No | Replace this existing page at the same address. | |
| siteName | No | Name shown to the user and recipients, e.g. "Q3 report". | |
| visibility | No | private (invitation-only, default) or public (anyone with the link). | |
| preserveFiles | No | Retain files not included in this edit. Requires siteId and baseDeploymentId. | |
| baseDeploymentId | No | Expected current version. A changed page is refused rather than overwritten. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page address. | |
| slug | No | Address label. | |
| siteId | No | Page id; pass it to replace the page later. | |
| fileCount | No | Files published. | |
| visibility | No | private or public. | |
| deploymentId | No | Id of this version. |