uichemy_deploy_to_cloudflare
Put a project ONLINE on the user's OWN Cloudflare account (a Cloudflare Worker at https://..workers.dev), built as a static site from the same pages as the Astro export. This is PUBLIC: only call it when the user asks to deploy or publish to Cloudflare, and tell them the address. The first time, the account is not connected yet: 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 deployed project UPDATES the same site (its pages are replaced with the current design). Every deploy is a numbered version; uichemy_site_versions lists them and uichemy_restore_site_version puts an earlier one back online. Only generated pages are deployed.
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_deploy_to_cloudflare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Page names to deploy. Omit for every generated page. | |
| accountId | No | Cloudflare account id, only when this tool listed several. Omit otherwise. | |
| projectId | Yes |