Publish a folder as a website
publish_sitePublishes a local folder containing index.html as a public static website and returns its URL; republishing an existing site updates the same URL after confirmation.
Instructions
Publish a local folder (with index.html at its top) as a public static website on publish.my and return its URL. Use for "publish", "deploy", "host", "put online", "share a link", and "publish again / update the site". The first publish of a folder gives a preview URL the user activates by entering their email on that page; after that, publishes go live immediately. Re-publishing a folder that is already live updates the same URL: ask the user first, then pass confirm_update: true. Framework apps (Next.js, Vite, Astro, SvelteKit, Nuxt) must be built/exported first; pass the output folder (out/, dist/, build/, .output/public).
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": {
"path": "<path>"
},
"name": "publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Folder to publish; must contain index.html at its top. Absolute path preferred. | |
| new_site | No | Publish as a separate new site even if this folder was published before. | |
| project_id | No | Update this existing publish.my site (e.g. "88vk3mqtxz"). Normally omitted: the folder's .publish-my.json is used. | |
| confirm_update | No | Set true only after the user confirmed replacing their live site. |