uichemy_publish_emdash
Put a project ONLINE as an Astro site WITH the EmDash CMS on the user's OWN Cloudflare account (a Worker at https://..workers.dev, plus a D1 database and login storage in their account). The site's pages, sections and blog posts become editable content in its admin at /_emdash/admin. This is PUBLIC: only call it when the user asks to publish, deploy or go live with EmDash or a CMS on Cloudflare, and tell them the address. The first time, the account is not connected: this returns a link the user must open to approve UiChemy on Cloudflare; after they have, call this again. If their Cloudflare login has several accounts, this lists them: ask which one and pass its accountId. Calling it again for a published project UPDATES the same site and keeps its CMS content and users. After the FIRST publish the CMS is locked behind a one-time setup link: give it to the user. Publishing takes about a minute; this waits up to 40 seconds, then returns a jobId for uichemy_emdash_status. Only generated pages are published. For a plain static site without a CMS use uichemy_deploy_to_cloudflare.
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": {
"projectId": "<projectId>"
},
"name": "uichemy_publish_emdash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build | No | html = HTML + EmDash (UiChemy designs, the default for a new site); astro = Astro + EmDash (every section's text and images edited in CMS fields). Omit to keep the build a published site already uses. Only when the user asks for a specific build. | |
| pages | No | Page names to publish. Omit for every generated page. | |
| accountId | No | Cloudflare account id, only when this tool listed several. Omit otherwise. | |
| projectId | Yes |