Publish from url
publish_from_urlPublish a whole site from a link, as the connected user: AttachPage downloads it, so the files never pass through the conversation. Use this instead of publish_page when the site is already online as a .zip, .tar.gz or .html file, or in a public GitHub repository (github.com/owner/repo, or a /tree/branch/folder link). The download must be public https, up to 50 MB of site, 20 MB per file and 2,000 files; it is checked like an upload. A siteId replaces an existing page at the same address. Visibility is private (invitation-only, default) or public. Does not send invitations.
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": {
"url": "<url>"
},
"name": "publish_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public https link to a .zip, .tar.gz or .html file, or a GitHub repository or folder (github.com/owner/repo/tree/main/site). | |
| slug | No | Optional address label, 3-40 lowercase letters, digits or hyphens. Random when omitted. | |
| folder | No | Folder inside the download to publish, e.g. dist or site. Default: the top level, or the usual site folder (dist, build, public…) holding index.html. | |
| 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). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page address. | |
| slug | No | Address label. | |
| folder | No | Folder of the download that was published, when not the top level. | |
| 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. | |
| importedFrom | No | Where the files were downloaded from. |