Publish with chat
v1.0.2Publish and host websites made with AI.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_site_guidance Get website building guidance
Returns reference material about building a good website for a non-technical customer: the facts worth gathering, what each kind of page usually contains, what a static site can and cannot do, and the quality standards the readiness report checks. Without site_type it returns the general standards and the list of website types. With site_type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other) it returns the checklist for that type. With topic domain-setup it returns the guide for connecting a domain the customer already owns. Read-only.
| Parameter | Type | Description |
|---|---|---|
site_type | string | Website type, to get that type's checklist |
topic | string | Reference topic instead of a website type |
create_publish_session Start a website upload
Starts a new website upload session and returns a session_id and its expiry time. Files are added to the session separately and become a previewable site when the session is finalized. Original image files are stored as given, without resizing. Sites are static pages (HTML, CSS and JavaScript that runs in the visitor's browser): they have no shopping basket or ordering process, no customer accounts or log-in, no database and no server code, so a request for those cannot be met by this tool. Cookies and browser storage (document.cookie, localStorage, sessionStorage) are not available either, an…
upload_site_file Upload a text file
Saves one text file of the website (html, css, js, svg, json) into an open session, with encoding 'utf8'. Logos, icons and illustrations work well as SVG. base64 is accepted for tiny binary files only (a few KB).
| Parameter | Type | Description |
|---|---|---|
content * | string | The file's contents: plain text for utf8, or base64 text for a tiny binary file |
path * | string | Relative path, e.g. index.html or css/style.css |
session_id * | string | The session_id returned when the upload or update session was started |
encoding | string | How content is encoded: utf8 for text files (default), base64 for tiny binary files only |
upload_file_chunk Upload a file in pieces
Saves a binary file into an open session in pieces, for files that can only be supplied as text. The file's base64 text is split into consecutive pieces of at most 12000 characters, each sent with chunk_index 0..total_chunks-1 (any order). When the last piece arrives the file is assembled and saved. Suited to small files only (roughly 100 KB).
| Parameter | Type | Description |
|---|---|---|
chunk_index * | integer | Position of this piece, starting at 0 |
data * | string | This piece of the file's base64 text, at most 12000 characters |
path * | string | Relative path the assembled file is saved to, e.g. images/logo.png |
session_id * | string | The session_id returned when the upload or update session was started |
total_chunks * | integer | Total number of pieces the file was split into |
import_file_from_url Import a file from a URL
Has the server download a file (image, font, a .zip of a whole site) from a public https URL into an open session, so the file's bytes do not need to be passed through the chat. Private and localhost addresses are not accepted. If path ends in .zip the archive is unpacked into the site root.
| Parameter | Type | Description |
|---|---|---|
path * | string | Where to save it in the site, e.g. images/hero.jpg |
session_id * | string | The session_id returned when the upload or update session was started |
url * | string | Public https address of the file to download |
import_attached_file Import an attached file
Saves a file the user attached to the chat (for example their logo or a photo) into the website. Pass the attached file as `file` and say where it goes with `path`, e.g. images/logo.png. If `path` is omitted it is saved as images/<original file name>. An attached .zip of a whole site is unpacked into the site root.
| Parameter | Type | Description |
|---|---|---|
file * | object | The attached file |
session_id * | string | The session_id returned when the upload or update session was started |
path | string | Where to save it in the site, e.g. images/logo.png. Defaults to images/<original file name> |
request_upload_link Get a file upload link
Returns a short-lived HTTP upload endpoint (valid 15 minutes) for one publish session, plus a ready curl command. A code sandbox that has the user's attached file and internet access can POST the original file bytes to it; the response confirms the saved path and size. A .zip of a whole site can be POSTed to the zip endpoint. The response also contains a browser upload page URL as a manual alternative. Optional `folder` sets the default folder for the browser page (default 'images'; empty string = site root).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The session_id returned when the upload or update session was started |
folder | string | Folder for individually dropped files. Default 'images'. Empty string = site root. |
list_session_files List uploaded files
Lists the files received so far for a session (from tool uploads and the browser upload page).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The session_id returned when the upload or update session was started |
finalize_upload Check the site and create a preview
Checks the uploaded site and creates a temporary preview URL (valid for 48 hours) plus a link the site owner uses to create an account and publish. The response lists errors (these block the preview) and warnings (broken links, missing pages, placeholder text). Optional site_name sets the site's name and web address. Optional site_type tailors the readiness report in the reply: a 0 to 100 score from automated checks (SEO, mobile, contact, content, accessibility, functionality, performance), critical items such as a form that goes nowhere, features a static site cannot provide, and what could n…
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The session_id returned when the upload or update session was started |
owner_email | string | Only if the user asked to be emailed the preview and owner link: their email address |
site_name | string | Business or site name, e.g. Blue Drop Plumbing |
site_type | string | The closest website type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other). Used to tailor the readiness report |
get_site_preview Get a fresh preview link
Returns a fresh temporary preview URL for the most recent version uploaded in a finalized session.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The session_id returned when the upload or update session was started |
publish_site Check publishing status and go live
Checks where a finalized site is in the publishing process and what has to happen next. When the site owner's account is already set up for publishing, this call also makes the newest uploaded version live (replacing the version that is live now). Otherwise nothing changes. Account setup happens in the owner's browser and is confirmed by the server, not by this chat. Returns stage: account_required (with owner_link), setup_required, held, live (with the live address) or suspended.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The session_id returned when the upload or update session was started |
list_my_sites List my websites
Lists the websites that belong to the signed-in customer, with status, live address and number of versions.
get_site Show one of my websites
Returns one of the signed-in customer's sites with its list of versions (id, upload time, size, and which one is live).
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The id of the site, as shown in the customer's list of sites |
update_site Start an update to a website
Starts an update session for one of the signed-in customer's existing sites. The session begins as a copy of the files that are live now, so only changed or new files need to be added to it. Finalizing the session saves a new version as a preview; whether that version can go live depends on the account.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The id of the site, as shown in the customer's list of sites |
read_session_file Read an uploaded file
Returns the text of one file in an open session (html, css, js, svg, json up to 200 KB). Binary files such as images are reported by name and size only.
| Parameter | Type | Description |
|---|---|---|
path * | string | Relative path of the file in the session, e.g. index.html |
session_id * | string | The session_id returned when the upload or update session was started |
rollback_site Restore an earlier version
Makes an earlier version of the signed-in customer's site live again. Without deployment_id it returns to the previous version. Version ids are shown with the site's details.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The id of the site, as shown in the customer's list of sites |
deployment_id | string | The version to make live, from the site's list of versions. Omitted: the previous version |
upload_site_files Upload several text files
Saves several text files of the website into an open session in one call (html, css, js, svg, json), with the same rules as saving a single file.
| Parameter | Type | Description |
|---|---|---|
files * | array | The files to save (text files; base64 only for tiny binaries) |
session_id * | string | The session_id returned when the upload or update session was started |
create_site_from_files Create a website from text files
Creates a new website from a list of text files in a single call: starts a session, saves the files and finalizes. Returns a preview link, the link the owner uses to create an account and publish, and a readiness report (score, critical items, unsupported features) tailored by the optional site_type. Only text files (and very small base64 files) can be included in this call; larger images and other binaries are added to a session separately. Sites are static pages (HTML, CSS and JavaScript that runs in the visitor's browser): they have no shopping basket or ordering process, no customer accoun…
| Parameter | Type | Description |
|---|---|---|
files * | array | The files to save (text files; base64 only for tiny binaries) |
owner_email | string | Only if the user asked to be emailed the preview and owner link: their email address |
site_name | string | Business or site name, e.g. Blue Drop Plumbing |
site_type | string | The closest website type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other). Used to tailor the readiness report |
update_site_files Change a website in one step
Changes one of the signed-in customer's existing sites in a single call: starts an update session (a copy of the live files), saves the given files over it, and finalizes a new version. Only changed or new files need to be given. With publish true the new version is made live straight away if the account allows it; otherwise it stays a preview. Sites are static pages (HTML, CSS and JavaScript that runs in the visitor's browser): they have no shopping basket or ordering process, no customer accounts or log-in, no database and no server code, so a request for those cannot be met by this tool. Co…
| Parameter | Type | Description |
|---|---|---|
files * | array | The files to save (text files; base64 only for tiny binaries) |
site_id * | string | The id of the site, as shown in the customer's list of sites |
publish | boolean | Make the new version live now |
site_type | string | The closest website type (small-business, tradesperson, photography, food-business, portfolio, landing-page, other). Used to tailor the readiness report |
read_site_file Read a file of my live site
Returns the text of one file of the signed-in customer's live site (html, css, js, svg, json up to 200 KB), without starting a session.
| Parameter | Type | Description |
|---|---|---|
path * | string | e.g. index.html |
site_id * | string | The id of the site, as shown in the customer's list of sites |