uichemy_download_site
Download a project as SOURCE CODE the user hosts themselves, as a .zip behind a link (works for 15 minutes and up to 5 downloads; give the link to the user right away). Nothing goes online. Frameworks: html, astro, react, next. Astro, React and Next.js come plain or with a CMS: astro: none or emdash; react: none or sanity; next: none, payload or sanity. ASK, DON'T GUESS: if the user has not named the framework, call without format and show them the question this returns; once they pick Astro, React or Next.js and have not said whether they want a CMS (or which), call without cms and show the CMS question this returns. Pass exactly what they chose. Only generated pages are included. To put a site online use uichemy_publish_site (WordPress) or uichemy_publish_emdash / uichemy_deploy_to_cloudflare (the user's own 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_download_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cms | No | The CMS the user chose. astro: none | emdash. react: none | sanity. next: none | payload | sanity. Omit (for astro, react, next) to get the question to ask them. Not for html. | |
| build | No | Astro + EmDash only. html = sections stay UiChemy designs (the default); astro = sections become Astro components whose text and images are edited in CMS fields. The two options the export screen offers. | |
| pages | No | Page names to include. Omit for every generated page. | |
| format | No | The framework the user chose. Omit to get the question to ask them. (emdash = astro with cms emdash.) | |
| projectId | Yes |