add_content_item
ChatGPTCreate a new content_items row for a site under a given content_type slug — this is the RIGHT tool for adding any repeating detail page (/projects/<slug>, /blog/<slug>, /searches/<slug>, /publications/<slug>, /work/<slug>, /talks/<slug>, /teaching/<slug>, etc.) when the site already declares a matching collections[] entry. The row is written to the site's DRAFT version, so it shows on the index page's <collection-list> and its detail URL /<prefix>/<slug> in PREVIEW right away (via the collection's template + Mustache substitution); it goes public on the next publish_site. DO NOT use add_page for detail pages of an existing collection — that creates a static page that the index won't reflect and sitemap won't auto-emit. IMAGES IN content: source them yourself with find_images or upload_image_from_url — that is the normal path and needs nothing from the person. An image-typed field holds an OBJECT: { "url": "https://…", "alt": "what is in the picture" }. A bare URL string is accepted and stored as { url }, but send alt when you can — it is the only description a screen reader gets, and the template may render it. Check the field's declared type with list_content_types before composing: a url-typed field takes the plain string instead. But if they want THEIR OWN picture on an item (their product shot, their photo of the venue), do not try to carry the file: create the item with the text, then give them get_editor_link with page_slug set to that item's path (e.g. 'blog/my-first-post') so they can drop the original straight onto it. content is validated against the content_type's JSON schema (lenient/open): required fields must be present and non-empty, declared fields must match their type, extra fields are allowed. Include every field the collection's template references — missing fields render as empty strings in the detail page. visibility defaults to 'public' (anonymous-readable). SLUG BEHAVIOR (idempotent): re-calling with the SAME slug + identical content is a safe no-op — it returns success with already_existed:true (no error), so a retried write after a dropped connection won't double-post. Re-using the same slug with DIFFERENT content is a real collision and throws ConflictError — pick another slug or use edit_content_item to change the existing row. If the site doesn't yet have a matching collections[] entry, add one first via create_collection (composes the collections[] entry + optional index page + items[] in one call). Each site defines its own schemas inline at collections[i].fields — there is no global content-type catalog; what shapes exist for a site is whatever the site's draft_fixture declares.
add_page
ChatGPTAdd a new ONE-OFF page to an existing site (About, Contact, Pricing, a new landing page, etc.). Creates a bare shell (one section with one heading) and returns its root + section ids so you can fill it with insert_nodes / patch_nodes. Writes a new draft version. DO NOT use add_page for repeating detail pages that share structure (/projects/<slug>, /blog/<slug>, /work/<slug>, /publications/<slug>, /searches/<slug>, etc.). Those resolve via the site's collections[] definition + Mustache substitution into a single shared template — they are NOT pages[] entries. To add an item to an existing collection, use add_content_item (with the matching content_type). To stand up a new collection on a site that doesn't yet have one, use create_collection (which composes the collections[] entry, an index page, and optional seed items in one call). add_page is wrong every time for collection detail pages: it bakes the row as a static tree, the index page's <collection-list> won't reflect it, and sitemap/SEO won't see it.
add_section
ChatGPTAdd a complete, hand-fixture-quality section to a page from a FLAT description — no node-tree authoring. Pick a kind, pass page_slug + the copy fields (eyebrow, heading, body, CTAs) and, for list-based kinds, an items[] array of flat cards/rows. The tool builds a correct section > container > stack > [...] subtree (theme tokens, Lucide icons, responsive grids, real spacing, every text/CTA independently editable) and splices it into the page, saved as one draft. Kinds & use-when: hero (page-opening headline+CTAs); features (icon/title/body card grid); content (long-form block); cta (centered band CTA); gallery (image grid); testimonials (quote cards); stats (count-up numbers); pricing (tier cards, highlight one); faq (Q&A list); logo-strip ('trusted by' logos); pull-quote (centered editorial quote); team-grid (people cards); split-image-text (image + copy split); process-steps (numbered steps); feature-split (copy + bullet list + image); newsletter (inline email signup band); comparison (with-us vs without); metrics-band (stats on accent band); banner-cta (full-width accent CTA); contact-form (copy + name/email/message form). Use this — not patch_fixture — to populate a page or add a section in-editor. For surgical edits to existing nodes use patch_nodes; for bespoke structure use insert_nodes (claude.ai only).
apply_brand
ChatGPTApply a partial brand spec to a site — any subset of {primary, accent, background, text, font_family, heading_family, name, tagline}. Color fields merge into theme.colors; font fields merge into theme.typography. Omitted fields are preserved. If name or tagline is provided, also best-effort updates the site brief (metadata.brief). Saves as a draft and returns the preview URL. Call screenshot_page if you want to see the result.
apply_palette
ChatGPTReplace the site's color palette. Two modes: (1) explicit spec — required: primary, secondary, accent, background, surface, text; optional: text_secondary, text_muted, border. (2) preset_name — re-apply a preset saved with save_theme_preset (colors + typography); any explicit palette fields override the preset's values. The flat text field maps to colors.text.primary; any colors not listed (e.g. semantic.success, selection.background) are preserved from the base theme. Optionally also set typography in the same call via heading_family / body_family (supported Google Fonts load via the platform bundle; unsupported names warn — omit to leave fonts unchanged). Saves as a draft and returns the preview URL. Call screenshot_page if you want to see the result.
cancel_scheduled_job
ChatGPTCancel a pending scheduled job. Returns the job's current status — if it already ran, was cancelled, or is running, we don't flip it back. Only 'pending' jobs transition to 'cancelled'.
capture_url
ChatGPTCapture a public URL for cloning. Returns everything needed to build a faithful replica: (1) full-page screenshot for visual context — your vision can attend to specific regions; you don't need per-section crops; (2) recursive rendered DOM tree (up to 500 nodes, 10 deep) with computed styles per node — the fastest way to pick exact colors, font sizes, spacing, and layouts without guessing; (3) ordered section structure with detected content type (hero / grid / cta / gallery / text / …), headings, bounds, and layout tokens (flex/grid/padding/gap); (4) detected brand tokens — primary/background/text colors, heading + body fonts, all fonts, typographic scale, section paddings, gradients and hero background images; (5) real image URLs (reuse them via upload_image_from_url so the clone has actual imagery, not stock placeholders); (6) nav links + OG metadata (title, description, og:image). Usage: capture → study screenshot (you have vision) + element_tree → compose a fixture from primitives mirroring structure.sections[i] → call create_site_from_fixture (the bespoke-composition path). Rate-limited to 5 captures per minute. Read-only as far as your Sitelas account is concerned: it fetches the target page and returns what it found, and saves nothing. Rehosting any image it lists is upload_image_from_url's job, not this one's.
change_site_address
ChatGPTRename a site's Sitelas address ({subdomain}.sitelas.com) — the same change as the dashboard's site settings. The old address keeps working: it 301-redirects to the new one, and stays reserved for this site. The preview address moves too (old preview links stop working), so share the new one. Rules: 1–63 lowercase letters, digits and hyphens; not a name another site uses or used, nor a reserved word (www, admin, preview-…). A custom domain is separate and unaffected — that is set_custom_domain.
check_custom_domain
ChatGPTWithout domain: list the custom domains attached to a site — hostname, whether DNS is verified, the verification token, when it was attached. With domain: re-check its DNS and mark it verified when the records resolve; on failure it returns the exact records expected (surface expected_records and message verbatim). A verified domain on a never-published site still 404s — say so and offer to publish. set_custom_domain attaches a domain; remove_custom_domain detaches one.
create_collection
ChatGPTStand up a new collection on an existing site in one call: append a collections[] entry (with contentType, pathPrefix, template, and optional items[]), optionally create the index page that hosts the matching <collection-list>, and seed initial items into the content_items table. After this call: - /{path_prefix}/{slug} resolves each item via Mustache substitution - the index page's <collection-list> iterates the seeded items - add_content_item / edit_content_item / delete_content_item manage rows afterward. Use this when the user asks 'add a blog to my site', 'set up case studies', 'add a careers section', etc. Schemas are per-site — pick a contentType slug that's unique within the site (call list_content_types to see what's already declared) and ship the fields[] schema inline. Writes a new draft version; call publish_site to push live.
create_site_from_fixture
ChatGPTPersist a fixture YOU composed as a new Sitelas site. Use this when the archetype-based create_site_from_template can't produce the structure you need — primarily for URL cloning (post-capture_url, when the source's section composition doesn't map cleanly to any shipped archetype), or for genuinely bespoke briefs that no archetype satisfies. For typical generation, prefer create_site_from_template — its archetypes are designer-tuned and produce higher-quality output by default. The fixture is validated (validate_fixture autofixes minor issues, throws on hard structural errors), then saved as a DRAFT (live URL 404s until publish_site). Returns the preview URL, site_id, manifest of patchable nodes, and warnings (e.g. unreachable pages).
create_site_from_template
ChatGPTCreate a new Sitelas site by cloning a template archetype. The template provides the design skeleton (page composition, section layouts, typography rhythm); you customize it for the specific brief via brand_overrides at create time + ONE bulk patch_nodes call afterwards (the only patch primitive — no per-node fallback). The site is saved as a DRAFT — not publicly live until the user approves and you call publish_site. Returns url (preview URL, best shared after customization patches are applied), site_id for subsequent edits, manifest (every patchable node id + current text + slot, replaces get_site for discovery), customization_brief (prose guidance for this archetype), overrides_applied, alternative_templates (other templates and who each suits, for an owner who wants a different design), and next_step (a suggested follow-up summary). Standard customization pattern after this call: read the manifest, build one patches array covering every text/image/cta change across all pages and siteElements, send one patch_nodes call. If the owner described pages, home sections, a hero style or light/dark, pass layout and the response's layout_plan.steps lists the calls that add what the template lacks.
critique_design
ChatGPTReturns extracted design metrics for a site (per-page section signatures, CTA counts, heading hierarchy, placeholder text detection, site-wide color/font/spacing usage) for reviewing a site's design quality and producing a structured critique. Useful after composing or editing a site as a self-review pass, before claiming it's done. Different from site_health_check (which covers technical things like missing alt text, broken links). Read-only.
delete_collection
ChatGPTDelete a whole collection (a blog, projects, menu, team…): its schema, its listing page (the page at its path prefix) and EVERY item in it. Use this when the user wants a whole section of posts or entries gone. To remove one entry use delete_content_item; never remove a collection with patch_fixture, which leaves all its items behind. The items and the listing page come off the live site immediately, like Delete in the editor; the schema removal stays in the draft until publish_site. Links to the collection elsewhere (menu, footer, buttons) are not changed: they come back in dead_links with where each one is — re-point or remove them. Also cleans up items left behind by a collection that is no longer declared. Permanent.
delete_content_item
ChatGPTDelete a content item by id. It also comes off the live site immediately. Ownership is verified via the parent site's user_id. Returns the deleted item's slug and content_type for confirmation.
delete_custom_domain
ChatGPTRemove a custom domain from a Sitelas site. Detaches the domain from the Vercel project (apex + www) and deletes the row from custom_domains. Use when the user wants to free up a typo'd domain to re-attach, swap to a different domain, or stop serving traffic on a custom hostname (the *.sitelas.com subdomain keeps working). Requires confirm: true to be deliberate. After deletion, the user should remove the DNS records from their registrar — Sitelas can't do that for them.
delete_page
ChatGPTDelete a page from a site. Cannot delete the home page ('/'). By default also prunes nav-link entries (header / footer / pageLayout / page bodies) that point at the deleted slug so the deletion leaves no broken nav links — set prune_nav_links:false to keep them. A nav-link is kept (with a warning) if removing it would empty its nav-links container. Other links to the deleted page (plain links, buttons, cards) are not changed: they come back in dead_links with where each one is — re-point or remove them. The page also comes off the live site immediately (like Delete in the editor); nav-link changes stay in the draft until published. Returns the preview URL.
delete_site
ChatGPTPermanently delete a site — its subdomain row, all version snapshots, all content_items, all submissions, the alias history, attached custom domains (removed from Vercel), any active billing for the site (cancelled), and any media in the storage bucket. IRREVERSIBLE. Use this when the user explicitly asks to scrap a site (e.g. 'delete my-portfolio-3947, I don't want it' or 'I created the wrong template, throw it away'). Requires confirm: true to be deliberate. Do NOT call this on user-said-something-vague — ask 'are you sure you want to delete {subdomain} permanently?' first and only call after explicit yes. There is no undo. If the billing cancellation fails, the entire delete is aborted so the user is never charged for a deleted site.
draft_reply_to_submission
ChatGPTReturns the original form submission plus a structured reply template (subject, greeting, body, sign-off) for you to adapt into a tailored response. This tool composes a TEMPLATE only — it does not send anything. Use list_submissions to find the submission_id first. Read-only: it neither sends the reply nor marks the submission as read — read_submission is the tool that does that, which is exactly why that one is not read-only and this one is.
duplicate_page
ChatGPTClone an existing page to a new slug. Deep-copies the source page's full tree (regenerating every node id so the copy is independent) and creates a new page with the same nav group and enabled state. Use for 'clone the pricing page for a new tier' / 'make a second case-study page like this one'. The copy lands as a draft; edit it with patch_nodes and publish when ready. Fails if new_slug already exists or is reserved.
edit_content_item
ChatGPTUpdate fields on an existing content item. Identify it by item_id, OR — when you only know its name — by site_id + content_type + (slug | title); title resolves fuzzily (exact then contains) and errors with the available titles when there's no unique match. patch may include content (shallow-merged into existing content JSON), slug (rename — the old URL 308-redirects to the new one once published), and/or visibility. At least one field is required. When content is patched, the MERGED result is validated against the content_type schema (lenient: required present + declared types; extra fields allowed) and rejected with paths if it would leave the item missing a required field. An image-typed field holds an OBJECT { "url": "…", "alt": "…" } — a bare URL string is accepted and stored as { url }. content is SHALLOW-merged, so patching an image field replaces the whole object: re-send alt alongside url or it is dropped. Ownership is verified via the parent site's user_id. Throws on slug collision.
explain_design
ChatGPTExplain the design choices of a site or a specific node. With node_id, returns layout role, color/typography choices, semantic intent, and related theme tokens. Without node_id, summarizes the site's overall design language. No LLM call and no writes — pure structural analysis, read-only.
find_images
ChatGPTSearch a curated stock photography library (Pexels) for real imagery to use in a site. Call this BEFORE composing any section that needs imagery — hero, feature-grid with visuals, testimonial cards with portraits, gallery sections, media-and-text sections. Returns large-size URLs, thumbnails, dimensions, average color, and suggested attribution. Chain with upload_image_from_url to persist the chosen image to the site's storage namespace (recommended — external URLs can rot). Be specific with queries; 'brooklyn bakery sourdough on wooden counter' returns much better results than 'bakery'. Rate-limited to 30 searches per minute per user. Read-only: it queries Pexels and returns results. Nothing reaches the site until you call upload_image_from_url with a URL from them.
find_templates
ChatGPTChoose the template a new site starts from. RANK (with a brief): pass audience plus keywords (the business in the owner's words — corroboration is computed from them) and needs (what the site must do); it scores every template and explains the ranking. Check the winner's match_quality: 'corroborated' = the brief's words appear in its use cases; 'structural' = it won on audience/goal alone — usually still build from it, call it a starting point, and push harder on brand, imagery and copy. If out_of_scope is not empty the owner asked for something Sitelas does not build (logins, a cart, live data, an app): say so plainly BEFORE creating and offer its instead. If audience_check is set, re-run with the audience it names. When the owner described the site's shape (pages, hero, light or dark) pass it as layout, and after creating run every call in layout_plan.steps. BROWSE (no brief — 'what designs are there?', 'what else?'): no arguments gives an overview of every audience and its templates; audience opens that shelf in recommended order; query searches ('bakery', 'dark portfolio'); slugs (up to six) gives full detail to compare a shortlist. Read-only: create_site_from_template creates the site.
generate_sitemap
ChatGPTBuild a sitemap.xml from a site's currently published version. Walks enabled pages and emits one <url> entry per page using the site's live URL (custom domain when verified, otherwise the *.sitelas subdomain). Returns the raw XML plus a parsed entries array. Read-only — does not mutate the site. Sitelas may already auto-serve a sitemap; use this tool to inspect or copy the generated XML.
get_analytics
ChatGPTFetch pageview and unique-visitor analytics for a site over a date range. Returns totals, a daily timeseries, top paths, and top referrers. Default range is trailing 28 days ending today. Use range_days for a trailing window, or since + until for explicit bounds.
get_collection_tokens
ChatGPTReturn EXACTLY what you can interpolate in a collection's row/detail template ({{…}} placeholders): every declared content field PLUS the auto-exposed route tokens {{slug}} (the item's slug) and {{url}} (the full detail path, pathPrefix + slug). Call this before writing a collection template so you don't guess a token that silently resolves to empty — the classic dead-link bug is writing href="/blog/{{slug}}" without knowing slug is a valid token. Read-only.
get_contact
ChatGPTFetch a single contact record for a site by email. Returns activity totals, tags, subscription status. Use list_contact_activity to get their interaction timeline.
get_editor_link
ChatGPTReturn a link to the site owner's own visual editor, optionally opening straight to one page or collection item. Give this to the person whenever the next step is theirs rather than yours: - They want to use THEIR OWN image. Pass image_target naming the spot and they get a one-time photo link instead of the editor: one page, one drop, placed on that spot in the draft, no sign-in. Without a spot they get the editor. This is the dividing line for every image on the site, sections and collection items alike: you source pictures with find_images, replace_images_from_search and upload_image_from_url and place them yourself, but a file that exists only on their device — their logo, their team photo, their product shots — comes in through the editor. Point them at the exact page or item (page_slug takes 'blog/my-post' as happily as 'about') rather than the site root. - They want to make a change themselves, or asked where to edit something. - They asked to see their site, or seem unaware there is a visual builder at all — many people who connect this connector never find out. The link opens their editor signed in as them. Do not promise they are already signed in: the session cookie may not exist on the device they open it from, in which case they are sent to sign in first and land in the editor afterwards. share_with_user is worded for that. The editor link is nothing secret — an ordinary product URL, authenticated by the person's own account. A photo link is a one-time capability for that one spot (30 minutes, one upload, draft only): give it to the person and to no one else.
get_example_fixtures
ChatGPTReturn example fixtures in the shape Sitelas expects — the first page's sections (up to 8), each collection's fields with one example item, and theme and template metadata: a Rosetta Stone for which fields are required vs optional, how responsiveStyle nests, what shape data.items/data.tiers/etc actually take in practice. Study one for shape; compose your own for content. The fastest path to a correct first call on an unfamiliar category is calling this once with that category, reading the skeleton, then composing from list_primitives + design principles — not avoiding examples on principle. The goal is never to replicate the reference; it's to get the shape right on call #1.
get_page
ChatGPTRead what is on the site's DRAFT. view 'content' (default) lists every editable node id with its text, plus form fields, FAQ items, image nodes and collection items — call it when you come back to a site and before patch_nodes. view 'structure' gives the container nesting with ids (for moving, inserting or removing containers, and the only way to see how header/footer nodes nest). view 'copy' lists all rewriteable copy on the whole site for a full rewrite. To check what visitors see, use read_rendered_page; for pages, theme and publish state, get_site. Read-only.
get_preview
ChatGPTFetch a fresh screenshot of a site's home page via the preview URL (preview-{slug}.{rootDomain}). The preview URL always renders: when there are unpublished edits it shows the draft, when draft equals live it 302-redirects to the published live site. Read resolved_slot to know which you got, and next_step for what to tell the user — when it is 'draft' the work is NOT live yet and the response says so in words to relay. IMPORTANT: that redirect means when there are NO unpublished edits, sharing the preview URL shows the user the LIVE site, not a private preview — only call it a 'preview to review before publishing' when there are actually unpublished draft changes (i.e. right after an edit). Use after edits to confirm changes look right. Read-only.
get_primitive_schema
ChatGPTReturn the full prop schema for a single primitive: types, defaults, options, required fields, allowed children, and styleStrip — a map of {style prop: actionable hint} for any inline-style props this primitive's renderer intentionally drops (e.g. on section, layout props like display/flexDirection are stripped because Section is a semantic wrapper; use a Stack/Grid child instead). Read styleStrip BEFORE setting style on a node — eliminates the silent-drop trial-and-error.
get_site
ChatGPTFetch details of a single site: pages (slug/title/order/edit URL, plus each page's own search settings and old redirecting URLs when it has any), theme summary, search settings (site-wide title/description/share image/noindex/language, the stated business details, ownership verification codes, connected analytics/ad tracking IDs, and the name and social profiles read from the site), publish status, and URLs. Share url — it always resolves. live_url is null when the site has never been published: it has no public address yet, so say so and offer publish_site rather than handing over a link. Does NOT return the node tree (use get_site_tree) or version history (use list_site_versions). By default returns a slim theme (slug + palette tokens + font families) to keep the response compact; pass include_theme_config=true if you need the complete theme config object.
get_site_brief
ChatGPTRead the durable design brief for a site — vibe, category, brand voice, palette name, fonts, tagline, audience, the last 20 design decisions, AND a design_system block auto-extracted from the latest fixture (theme colors, typography pair, spacing scale, dominant section padding, icon density, section shape variety). Use this at the START of any editing session to recover context — it tells you what the site's design language already is so subsequent edits stay consistent. Returns has_brief=false when no brief has been saved yet.
get_site_changes
ChatGPTSummarise what changed: pages added or removed, pages whose content changed, and whether the theme or shared header/footer changed. By default the draft against what is live — what is waiting to be published. since: 'previous' includes the last publish; from + to compares any two of live / draft / previous. include_versions adds the three snapshots. Read-only.
get_site_changes_since
ChatGPTCompact diff between a named snapshot (live or previous) and the current draft. Lists added/removed pages, pages whose tree changed, and whether the theme or shared header/footer changed. Use this to summarize what's pending publish (since='live') or everything that's happened including the last publish (since='previous'), instead of dumping full snapshots.
get_site_manifest
ChatGPTReturn the customization manifest for an EXISTING site — every patchable node id with its current text, plus the things no other read tool shows: each FORM's complete field list, copy that lives in node data rather than in text nodes (accordion/FAQ items, banner link labels, form success messages), slot tags, and each COLLECTION's items — read live from content_items, so they reflect every add/edit/delete you have made, not the list the template shipped. This is the same structure create_site_from_template returns, so it is the tool to call when you come back to a site you did not just create and want to edit it — build one patch_nodes call from it. Prefer this over get_site_tree for copy work: get_site_tree gives the container hierarchy with 60-char text previews and does NOT show form fields or data-borne copy, which is the copy most likely to still be the template's. Pass page_slug to scope a large site to one page. Also returns the theme summary (palette + font families) and draft_updated_at — keep it; on a later turn, if it has not changed, the pages, header/footer and theme have not either. It does not track collection items (those are read live in every response). Reads the DRAFT version. Read-only.
get_site_overview
ChatGPTAbstracted site map — pages, collection items, theme tokens, per-page section types and headlines — without dumping the full primitive tree. Also reports PUBLISH STATE: the publish digest (is_live, shell state, per-kind live/edited/draft counts, has_unpublished_changes) plus a state ('live'|'edited'|'draft') on every page and collection item — use it to answer "what's live?" / "is anything unpublished?". SCOPE: this is the orientation + publish-state tool. Its editable_nodes is a capped, flat PREVIEW of text-bearing nodes — it does NOT show form fields, data-borne copy (accordion items, banner link labels, form success messages), collection items, detail-template copy, or slots, so it is the wrong surface for a copy pass: call get_site_manifest for that. For the full nested node tree (ids + nesting, minus props), call get_site_tree.
get_site_tree
ChatGPTReturn the STRUCTURAL node tree of a page — the container hierarchy (sections, columns, cards, groups) and every node's id + type + a short text label — WITHOUT the full props payload, so it stays small. Use this when you need to target a CONTAINER, not just text: moving a section, restyling a column, inserting a child, or removing a block. Pass slug:'header' / 'footer' / 'pageLayout' (or 'shell' for all three) to read the site SHELL — the chrome shared by every page. That is the ONLY way to see how shell nodes nest: get_site_manifest lists them flat, so insert_nodes/move_nodes calls built from it guess at parentage and get rejected. A shell edit lands on every page at once. The other three readers each own a different question: get_site_manifest is the one for COPY (it alone shows form fields, data-borne copy, collection items, detail-template copy and slots); get_site_overview is for orientation and PUBLISH STATE, and its node list is a capped preview, not a copy inventory; get_site returns page/theme/publish summary with no node tree at all. get_site_tree is the one that gives the full NESTING with ids, minus the props. Reads the DRAFT version. Read-only.
get_version_diff
ChatGPTCompare two slots of the three-state snapshot model (live / draft / previous) and return a structured summary of what changed: pages added or removed, pages whose top-level section count changed (and by how much), whether the theme changed, and whether the shared header/footer changed. Common pairings: from=live to=draft (what would publish do), from=previous to=live (what did the last publish do).
insert_nodes
ChatGPTAdd many nodes to a site in ONE call, batched into one new draft version. Each insertion is {parent_id, position, node}: parent_id locates an existing parent anywhere in the fixture (pages + siteElements), position is 'start' | 'end' | {after_id}, and node is the subtree to splice in. Use this for structural addition — adding a new section to a page, inserting a nav link, adding a card to a grid, restoring a container that was accidentally removed. Safe alternative to patch_fixture's JSON-Patch 'add' ops: no hand-constructed paths, validated parent + unique-id checks, and the subtree goes through the same primitive schema as any other node. Use list_primitives + get_primitive_schema to shape the new node's data. Tag each content node with its semantic role — "extra": { "slot": "hero-title" } — so the next read of get_site_manifest can say what the node IS rather than reporting a null role; an unknown slot name is rejected with the closest valid ones, and untagged content comes back as a warning. If a parent or after_id is missing, or a new id collides, the whole batch is rejected. Up to 50 insertions per call.
insert_tree
ChatGPTInsert a bespoke node subtree (provided as a JSON string) under an existing parent, as one new draft version. The editor-chat escape hatch for structure that add_section's flat archetypes can't express — layered hero stacks, two-tone headline row-stacks, asymmetric columns, custom nesting. Runs the same validation as insert_nodes (unique ids, primitive data-shape, parent must accept children) and rejects without saving if the subtree is malformed. For standard sections, use add_section instead — it's simpler and less error-prone. Use list_primitives + get_primitive_schema to shape node data correctly.
list_card_designs
ChatGPTThe choices set_card_design accepts for a collection list's cards: 'as-designed', the plain arrangements, and the design library (cards lifted from the hand-tuned templates, grouped photo-on-top / text-over-photo / words-only), plus every style setting's allowed values. Pass site_id + list_node_id to also get which choices fit that card (a photo design needs a card that shows a photo) and its current design and style. Read-only.
list_contact_activity
ChatGPTChronological list of a contact's interactions with the site — form submissions they made, newsletter subscribe/unsubscribe events. Most recent first. Useful for 'tell me everything we know about Sarah'.
list_contacts
ChatGPTList contacts who have interacted with a site (filled a form, subscribed to newsletter). Filter by text, tags, or activity thresholds (min_submissions, subscribed_only, since). Ordered by most recent activity.
list_content_items
ChatGPTList content items (e.g. blog posts, projects) for a site filtered by content_type slug. Optionally filter by visibility ('public' | 'private' | 'all'; default 'all'), with limit/offset paging. Returns each item's id, slug, full content JSON, visibility, and timestamps. Use add_content_item / edit_content_item / delete_content_item to mutate the collection.
list_content_types
ChatGPTList every content collection declared on a site, with its per-item field schema (fields[]). Schemas are per-site — there is no platform-wide catalog. Each entry includes the collection's contentType slug, its pathPrefix, whether it's enabled, and the typed fields[] (each with key, type, optional required, label, description, options for select fields), PLUS observed_fields — keys that actually appear on the collection's items but aren't in the declared schema (the schema is open, so include these when adding an item so it matches the existing ones). Call this before add_content_item to discover which fields a collection supports — or before create_collection to confirm a contentType isn't already taken. WHAT EACH type HOLDS, because the name does not say: text / textarea / rich-text (HTML) / url / date / select -> string; number -> number; boolean -> boolean; tags -> string[]; image -> an object { "url": "…", "alt": "…" }, NOT a bare string (a plain URL is accepted on write and stored as { url }; send alt when you have it). That last one is the one that gets guessed wrong.
list_custom_domains
ChatGPTList custom domains attached to a Sitelas site. Each entry includes the hostname, whether DNS verification has succeeded, the verification token (when one exists), and when the domain was attached. Use set_custom_domain to attach a new domain and verify_custom_domain to re-check verification.
list_primitives
ChatGPTReturn every primitive available in the Sitelas renderer plus tree-level constraints. Each primitive entry includes style_strip (when present) — a map of style props the primitive's renderer intentionally drops, paired with the actionable alternative. Response also surfaces max_tree_depth — the nesting ceiling the tree-validator enforces (children deeper than this are truncated). Read this BEFORE composing fixtures; saves trial-and-error from setting layout props on a Section that strips them, or from nesting too deeply for a bento layout. For full prop schemas, call get_primitive_schema(type) on a specific type.
list_scheduled_jobs
ChatGPTList scheduled jobs for a site. Filter by status (pending/running/done/failed/cancelled), kind, or run_at range. Defaults to every job ordered by run_at ascending (next up first).
list_section_archetypes
ChatGPTReturn section archetypes (hero, menu-grid, testimonials, contact-cta, etc.) recommended for a given site category. Each archetype includes when to use it and a description you can adapt when composing a Fixture.
list_site_copy
ChatGPTList every piece of copy on the site so you can rewrite it: scans the latest draft and returns every rewriteable text field — heading.data.text, text.data.content, rich-text.data.content, button.data.text and link.data.text — grouped by {page_slug, node_id, node_type, field, current_text}. Covers BOTH page bodies AND the shared chrome: header, footer, and pageLayout nodes are returned with page_slug set to 'header' / 'footer' / 'pageLayout' — that chrome is where a template's brand name lives, so rewrite it too or the old brand ships under the new identity. The instructions argument is echoed back so the caller knows the rewrite intent (e.g. 'make it more formal', 'shorten by 30%'). This tool does NOT mutate the site and does NOT call any LLM (Sitelas is credit-free over MCP). Compose the rewrites yourself, then ship them via patch_nodes (one {node_id, text|data_patch} entry per item — patch_nodes resolves ids in pages AND header/footer/pageLayout; use data_patch for the title field; the text shorthand already routes to data.label for nav entries, so those apply as {node_id, text}). An entry may carry href — that is the node's link DESTINATION, shown as context, never as copy to rephrase. Leave it alone unless your new wording changes what it should point at (an email address or the old brand's domain in the label); then patch href in the SAME patch_nodes entry, or the visible address and the mailto: disagree. ALSO returns content_items[] — the prose fields of every collection item ({content_type, slug, field, current_text}); apply those rewrites via edit_content_item. NOT included: accordion item titles/bodies — rewrite those via patch_nodes data_patch. COVERAGE — read these before you report anything as done: content_items_total is how many collection items EXIST on the draft (counted before any cap); content_items_returned is how many of them appear in content_items[]; total_items is only how many entries this response contains, so it is never evidence of coverage. When truncated is true, or content_items_returned is below content_items_total, this response is NOT the whole site: call list_site_copy again with a higher max_items (and reach any remainder through list_content_items) until the two numbers match. If you stop before then, your summary must say what you left — e.g. '6 of 16 menu items were not included in this pass' — because renaming the headings above untouched items makes the page read MORE finished than it is. State it as COVERAGE of your own pass, never as a verdict on the user's copy: what you did and did not reach is yours to report, whereas 'your site still carries the template's copy' is a warning the owner has asked not to receive. coverage_warning is the sentence to act on when present. READ-ONLY: this tool RETURNS the fields that want rewriting and changes not one of them. Nothing is written until you send the new copy back in a patch_nodes call.
list_site_images
ChatGPTList the images in a site's library, newest first, with their public URLs. Two main uses: collecting what arrived after you sent someone to the editor with get_editor_link (pass since with the moment you sent it, then place the results with patch_nodes), and checking what a site already has before uploading something it may already hold. Returns storage paths and byte sizes alongside the URLs. Place what you find with patch_nodes, never patch_fixture or update_site_from_fixture. If the image arrived because you sent someone a get_editor_link, they may still be in the editor right now; the full-replace tools overwrite the entire draft with no conflict check and would discard their work silently. patch_nodes re-applies onto concurrent edits instead.
list_site_templates
ChatGPTBrowse the site templates (archetypes) you can start a new site from. Each is a complete, hand-tuned design direction with one palette, one typography pair and a specific page composition — a structural starting point, NOT a rigid final design. With a real brief, call select_template_for_brief first; use this when the user is browsing, asks what else there is, or the selector's pick needs comparing. Called with no arguments it returns an OVERVIEW: every audience, what it covers, and its template slugs in the order we recommend them. Then open a shelf with audience (templates built for it first, then ones that also fit), search with query ('bakery', 'dark portfolio'), or filter by category; results come in pages (page, page_size) with slug, name, description preview, page slugs, palette/type summary and classification. Pass slugs (up to six) for full detail on a shortlist — every use case and anti-case plus the customization brief. Then call create_site_from_template with the one you pick.
list_site_versions
ChatGPTThree-state snapshot model: returns the live slot (currently published), the draft slot (current working copy), and the previous-live slot (one-step undo target, if any). Use revert_site to roll back to the previous-live snapshot.
list_sites
ChatGPTList all websites owned by the current user. Returns subdomain, publish status, plan tier, creation date, and URLs for each. Share url — it always resolves. live_url is null for a site that has never been published: that site has no public address yet, so say so and offer publish_site rather than handing over a link. Use get_site for per-site detail.
list_submissions
ChatGPTList form submissions for a site. Returns summaries (name, email, form_type, source — which page/form the submission came from, e.g. a specific job position — is_read, preview of message, and attachments — any uploaded files as {field, name, url} with DURABLE download links safe to paste into an exported Google Sheet / CSV) plus a monthly_counter block (used / limit / over_limit / locked / month / plan). The allowance is per calendar month; a month's locked submissions stay locked after it ends. Capture is NEVER gated on any plan: every submission is stored and forwarded to the site's webhook regardless of the count. What the allowance controls is READING. On Free, submissions past a month's allowance come back with locked: true — created_at and form_type only, with name, email, description and attachments withheld; say plainly that the submission arrived and was kept. Do NOT imply anything was lost or dropped, and do not pitch a plan change on the back of it, and do not try to recover a locked submission through read_submission, draft_reply_to_submission or the contact tools — they withhold it too. Pro never locks. Filter by form_type, unread_only, or since-timestamp. form_type is free-form text set by whoever built the form — the built-in presets are contact, waitlist, newsletter, rsvp, quote, application and custom, but templates ship their own (e.g. booking, tour-request, commission-enquiry), so read the form_type values off an unfiltered call before filtering on one. Use read_submission to fetch the full payload of one.
move_nodes
ChatGPTMove a node to a new position in its page/element tree — reorder it within its current parent (e.g. push a section to the top) or re-parent it under a different container in the SAME tree. This is the safe reordering primitive: it takes node ids (not brittle JSON-Patch index paths) and is validated against the actual tree. position is 'start' / 'end' / { after_id }. Rejects moving a root node, moving a node into itself or its own descendant, and cross-tree moves (use duplicate_page / insert_nodes for those). Writes one new draft version.
patch_fixture
ChatGPTApply an RFC 6902 JSON Patch (array of add/remove/replace ops) to the latest fixture snapshot for a site, then save the result as a draft version. Use this when you need precise multi-field edits across the fixture (theme tokens + a couple of nodes + a header swap) without shipping the full fixture again. Paths are JSON Pointers (e.g. '/theme/config/colors/primary' or '/pages/0/tree/children/2'). Returns the preview URL. Call screenshot_page if you want to see the result.
patch_nodes
ChatGPTApply many node-level patches to a site in ONE call, batched into one new draft version. The primary patch primitive — there is no single-node tool. Each patch entry provides the node_id plus one or more shorthand fields: 'text' for copy (auto-routes to data.text for heading/button/link/nav-link/banner-bar, data.content for text/rich-text/blockquote), 'href' for link destinations, 'src'/'alt' for images, 'slot' to set or correct a node's semantic role. For props not covered by shorthands (level on heading, variant on button, items on accordion), use 'data_patch' — its keys are validated against the primitive schema (prevents silent failures where the renderer ignores your key). Patches are independent: valid ones are saved even if others fail, and each failure comes back in 'rejected' with the reason, so send a small follow-up call for those rather than resending everything. Typical post-create flow: read the manifest, build an array of {node_id, text} entries for every placeholder copy string, send ONE call. Order doesn't matter — patches merge independently. Each node_id may appear at most once per batch; merge multi-field patches for the same node into one entry. Node ids are searched in pages, then header/footer/pageLayout, then COLLECTION DETAIL TEMPLATES — so the labels and CTAs around a detail page's {{placeholders}} (get_site_manifest's collections[].template_nodes) are patchable like anything else; the response names those under collection_templates_touched, because one such patch changes every item page in that collection at once. Returns dead_links when the site is left with an internal link whose target route does not exist — check it before reporting the work done, because a card whose text is right and whose href is stale looks finished and 404s on click.
place_attached_image
ChatGPTPut a photo the person ATTACHED to their message onto one spot of their site, in one call: it is downloaded at full quality, processed like every image (resized, WebP, blur placeholder), stored, and placed on that spot in the DRAFT. Use it whenever someone attaches their own photo (logo, team photo, product shot) and says where it goes. Pass the attachment as image and name the spot in image_target. If the attachment does not come through (it sometimes arrives empty, and the phone apps send an incomplete reference), the call still succeeds with placed: false and a one-time photo link for that spot: give the person share_with_user instead of retrying. Not for stock photos (replace_images_from_search) or an image already online (upload_image_from_url).
preview_collection_item
ChatGPTRender a collection's DETAIL template against one specific draft item and return the resulting text + links + any problems — WITHOUT a browser and WITHOUT publishing. Use it right after add_content_item / editing a template to catch silent-success bugs before they go live: unresolved {{placeholders}}, and links that still contain braces. Complements get_site_tree (structure) and read_rendered_page (live SSR text). Read-only.
publish
ChatGPTMake the draft live. With no page_slug or item it promotes the whole draft — the step that turns a draft into a real site; until it runs the live URL does not resolve. With page_slug it publishes one page; with item, one collection item. Publish ONLY on the owner's explicit yes after they have seen the preview — never auto-publish, and don't read 'change X' as 'change X and publish'. If it returns billing_gate, pass its message on as it is and ask the owner what to do; never unpublish another site to make room. Reversible with undo (what: 'last_publish'). The returned url is verified to render.
publish_content_item
ChatGPTPublish ONE collection item independently: its latest draft goes live on its own, leaving every other item, every page, and the site-wide header/theme exactly as they are. This is the tool for taking a SINGLE new or edited post live without republishing the whole site — pair it with add_content_item (which only writes a DRAFT) to publish a blog post: add_content_item then publish_content_item. (For an unattended, connection-drop-safe daily post, prefer schedule_content_publish with publish:true, which does the insert + take-live durably server-side.) The site must ALREADY be live — do the first publish with publish_site. Like publish_site, only publish when the user asked you to (a standing 'auto-publish the daily post' instruction counts as that approval). Returns a warning when there are also unpublished site-wide (theme/header/collection) changes that this did NOT ship.
publish_page
ChatGPTPublish ONE page independently: its latest draft goes live on its own, leaving every other page and the site-wide header/theme exactly as they are. Use this to push a single page's changes (or a brand-new page) live without republishing the whole site. The site must already be live — do the first publish with publish_site. Like publish_site, only publish when the user asked you to. Returns a warning when there are also unpublished site-wide (theme/header) changes that this did NOT ship.
publish_site
ChatGPTPromote the draft slot into the live slot — the step that turns a draft into a real site the user can actually give people. Call it as soon as the user has seen the preview and said yes; until it runs, their site is not public and its live URL does not resolve. Publishing is NOT plan-gated — free sites publish as many times as they like; only a suspended site is refused — and it is reversible: the current live snapshot (if any) is archived into previous_live, so revert_site is a one-step undo. The handler probes the live URL before returning, so url is GUARANTEED to render (falls back to the preview URL if ISR is still warming). Returns a warning when a published page has no content and would render blank. One constraint on all of the above: publish only on an explicit yes — don't auto-publish, and don't read 'change X' as 'change X and publish'.
read_rendered_page
ChatGPTTHE DEFAULT WAY TO CHECK YOUR WORK. Fetch a page's SERVER-RENDERED text via the preview URL — the visible copy, headings, and (for collection/list pages) the expanded items — in ~35ms with no browser. Call it on every page you touched, before showing the user anything. It is what catches the failure you cannot otherwise see: template copy that survived your edit. A consultant template's funding-stage dropdown on a bike shop, a US Medicare FAQ on a UK dental practice — both shipped because nobody read the page back, and neither looks like an error in a diff. Prefer this over screenshot_page, which runs a real browser, takes ~40x longer, and answers a different question (how it LOOKS, not what it SAYS). Read-side pair to get_site_tree: that shows STRUCTURE, this shows RENDERED CONTENT. Reads the draft via the preview URL. Read-only.
read_submission
ChatGPTFetch the full content of a form submission by id — name, email, message, every field value, and the form's schema at submission time. By default also marks the submission as read. Set mark_read=false to leave the is_read flag alone.
record_decision
ChatGPTAppend a durable decision (with optional rationale) to the site's cross-session memory. Use this whenever you make a non-obvious creative or structural choice the user might want to revisit later — palette swap, copy direction, layout approach, etc. decision and why are each capped at 500 characters — keep decision to the choice itself and put supporting detail in why. Capped at 50 entries per site (oldest dropped). Returns the new total count and the timestamp recorded.
remove_custom_domain
ChatGPTDetach a custom domain from a site (apex + www) and delete it from Sitelas's records — for a typo'd domain, a swap to another, or to stop serving a hostname (the *.sitelas.com address keeps working). Requires confirm: true. Afterwards the owner removes the DNS records at their registrar; Sitelas can't.
remove_nodes
ChatGPTDelete many nodes from a site in ONE call, batched into one new draft version. Locate each node_id across pages, siteElements and collection detail templates, and splice it out of its parent's children array. Use this for structural subtraction — dropping a testimonials section, removing a nav link, cutting one card from a grid, removing a header/footer column — whenever the brief calls for the template's layout minus something. Safe alternative to patch_fixture's JSON-Patch 'remove' ops for the same purpose: no hand-constructed paths, validated against the actual tree, and rejects root-node removal so you can't nuke a whole page. If a node id isn't found, the whole batch is rejected (fix and retry). Up to 50 removals per call.
replace_images_from_search
ChatGPTReplace many image nodes at once: for each {node_id, query} patch, search Pexels, upload the top match to the site's CDN, and patch the node's src + alt — all in ONE tool call, batched into ONE new draft version. Use this after create_site_from_template to swap every placeholder image at once instead of doing 2N sequential calls (find_images + upload_image_from_url per image). Build the patches array from the manifest's image_nodes (each entry has a suggested_query you can use directly, override when the brief calls for something more specific). Up to 20 images per call. Each patch's node_id must exist in the current fixture; missing nodes are reported as skipped (not fatal — other patches still apply).
replace_site
ChatGPTReplace an existing site's DRAFT. With template_slug: switch it to another template — the owner said 'not my style' and picked another design. The whole draft is replaced (pages, theme, header and footer), so redo the copy and photos for the business afterwards. With fixture: replace everything with a fixture you composed; with page_updates: replace only the listed pages' trees. Saved as a draft — the live URL is unchanged until publish. Share url (the preview) and relay next_step; never say it is live.
reset_draft
ChatGPTREJECT the draft: throw away every saved-but-unpublished change and make the working copy identical to the currently published version (the inverse of publish_site). Use when the user dislikes the drafted changes they reviewed on the preview URL and wants to start over from what's live — "scrap those changes", "go back to the live version". Whole-site operation across the shell, pages, and collection items; deliberately-unpublished pages/items keep their drafts. previous_live is untouched, so revert_site (undo last publish) remains available. Returns reset=false when the site has never been published — there is nothing to reset to, and resetting would be meaningless (the draft is the only copy). DESTRUCTIVE for the draft: requires confirm=true; ask the user before calling.
revert_site
ChatGPTUndo the most recent publish. If that was the whole site, the site goes back to the snapshot live before it; if it was one page or item (publish_page / publish_content_item), only that page or item goes back and undone names it. One-step undo only. Returns restored=false when there's nothing to undo (never republished, or already undone). The live URL is verified to render before return.
review_site
ChatGPTReview the draft. Default focus 'health' finds what to fix before publishing — broken links, missing alt text and SEO titles, empty sections, and template content that survived (copy, form options, FAQ and collection items), and text visitors cannot read — it measures contrast on the rendered pages, which is the only check that catches light text left on a light card after a colour change. Run it after a build, a big edit or a set_theme colour change, and fix what it reports. focus 'design' returns design metrics for a self-critique; 'explain' explains the design (pass node_id for one node); 'next' suggests up to 3 next steps. Read-only: it reports and changes nothing.
save_theme_preset
ChatGPTSnapshot the site's CURRENT draft theme (colors + typography) into fixture.themePresets[] as a named preset you can re-apply later with apply_palette(preset_name). Pass optional color/typography overrides (primary, accent, background, heading_family, body_family, etc.) to save a tweaked variant without first applying it; omitted overrides keep the current draft values. Saving with an existing preset name REPLACES that preset (no duplicates); max 20 presets per site. Does NOT change the active theme — the draft renders the same before and after.
schedule_content_publish
ChatGPTEnqueue a DURABLE 'create this collection item (and take the site live)' job instead of writing it over this connection. Use this for UNATTENDED / scheduled runs (e.g. a daily auto-published blog post): a server-side worker performs the insert with retries + slug-idempotency, so a connector drop can't lose the post or double-post it. The payload is validated NOW (collection must exist, content must match the schema) so mistakes fail fast here rather than silently in the worker. Returns a job_id you can track with list_scheduled_jobs. For interactive edits you're watching, use add_content_item directly instead.
schedule_publish
ChatGPTSchedule a publish or unpublish to happen later. action: "publish" flips the site live at run_at; action: "unpublish" takes it down. Use for launches, time-limited campaigns, or scheduled maintenance windows.
screenshot_page
ChatGPTCapture a JPEG when the question is genuinely VISUAL — layout, spacing, hierarchy, whether the hero reads as designed, whether the mobile breakpoint collapses cleanly (pass viewport). Returns the page's text and title alongside the image, fetched concurrently at no extra wall-clock, so you get what the page SAYS as well as how it LOOKS from one call — READ that text, because leftover template copy is the most common way a site ships wrong and it is invisible in an image. Still runs a real browser at ~5s, so when the question is only about wording prefer read_rendered_page at ~357ms. Always captures via the preview URL (preview-{slug}.{rootDomain}), which renders the current draft (or 302s to live when in sync). Read-only.
select_template_for_brief
ChatGPTScore every available template against a parsed brief and return the top matches with reasoning. Call this BEFORE create_site_from_template when the user has a real brief — it picks the best archetype using structured metadata (audience, register, conversion goal, integrations) instead of prose-matching. The output explains WHY each template ranked where it did so you can confidently pick the top result. CHECK match_quality before trusting the winner: 'corroborated' means the brief's own words appear in that template's useCases; 'structural' means it won on audience/conversion taxonomy alone and NONE of the brief's keywords appeared in its useCases (a top-level advisory says so, and score_pct is capped at 60 to stop an unverified neighbour reading as a designed fit). Structural means uncorroborated, NOT unsuitable — useCases list examples rather than every trade, so read the winner's brief before judging it. Usually still create from it, and tell the user it is a starting point and push harder on brand_overrides, imagery and copy. Pass keywords whenever you can: corroboration is computed from them, and without them every match reports as 'unverified'. Pass needs (what the site must do, in the owner's words) so the template that already ships them ranks first. If out_of_scope is not empty, the owner asked for something Sitelas does not build (logins, a cart, live data, an app) — tell them plainly BEFORE creating, and offer the marketing site in its instead. If audience_check is set, the audience you passed is probably wrong for this business — re-run with the one it names. Use list_site_templates instead when the user is browsing without a clear brief, or when they ask 'what other options are there' — pass it the same audience to see that shelf in our recommended order. When the owner described the site's shape — which pages, what the home page shows, the hero, light or dark — pass it as layout, and after creating run every call in the returned layout_plan.steps. Read-only: it scores and ranks, and creates nothing — create_site_from_template is what actually persists a site.
set_card_design
ChatGPTChange how every card of a collection list looks, in one call: design swaps the whole card (a library design from list_card_designs — each takes the site's own fonts and colours and keeps every field the card shows — a plain arrangement, or 'as-designed' to put the original back), and style adjusts it (surface, corners, padding, photo shape, text alignment, hover). Prefer this to rewriting a card template with patch_nodes/insert_tree: it cannot drop a field, break the card's link or lose the way back. Writes one draft version.
set_custom_domain
ChatGPTAttach a custom hostname (e.g. example.com, www.example.com, app.example.com) to a Sitelas site. Registers the domain with the CDN, stores it against the site, and returns the EXACT DNS records the user needs to add at their registrar — apex domains get an A record (76.76.21.21) plus a www CNAME, subdomains get a single CNAME. Records are returned both structured (dns_records) and as a copy-pasteable human-readable list (dns_instructions). Relay dns_instructions and next_step verbatim. After DNS propagates (5–30 min typical), call verify_custom_domain to flip the verified flag.
set_theme
ChatGPTChange the site's colours and fonts in the draft — any subset; what you leave out is kept, and text that would become unreadable is repaired and reported. Also sets the brand name and tagline, re-applies a saved look (preset_name), and saves the result as a named look (save_as) for later. For one section's surface or one button, prefer that node's own data (section background, button variant) over the theme. After a colour change it measures the preview, and text that no longer reads on its background (accent text on a primary card, a button's own text colour) is given a theme colour that reads and listed in text_recoloured — tell the owner what changed. That check adds up to ~20s. Returns the preview URL.
set_tracking_codes
ChatGPTConnect the owner's own Google Analytics 4, Google Tag Manager, Meta Pixel or Plausible to their published site. Takes an ID — or the snippet the owner pasted, from which the ID is extracted — never arbitrary script. Omitted providers are kept; null disconnects one. Live on every public page at once, no publish needed (never on preview links). Use only IDs the owner gave you. Sitelas has its own visitor analytics (get_analytics); this is for owners who want their numbers in those tools, or to measure ads. Where the owner's visitors are in the EU/UK, tell them these tools may need a cookie consent banner.
site_health_check
ChatGPTWalk the latest fixture for a site and surface quality issues — missing image alt text, broken/empty links, empty sections, orphaned pages, missing SEO titles, and copy still carrying the source template's content — form option lists, accordion/FAQ items, banner link labels, placeholder imagery (a random-photo service still in an <img>), example.com links that go nowhere, and US-only wording left on a site that otherwise reads as non-US (Medicare on a practice quoting NHS bands and £ prices). It also checks the site's COLLECTION items (products, blog posts, job openings, publications) against the template's starter rows — those are not in the page tree at all, so they survive a full copy rewrite and go public on publish. It also checks the site SHELL — the one header and footer shared by every page, and the part a copy rewrite reaches last because it is in no page tree — for the template's own business name still being presented as this site's, and for the template's demo contact details (email, phone, social handles) still being published as this owner's. That last group is the one no amount of copy editing fixes, because the strings live in node data or in the content store rather than in text nodes. It also LOADS every page through the preview URL and reports any that fail to render — a page can pass every structural check and still show visitors the error screen. It also MEASURES text contrast on the rendered pages and reports text visitors cannot read (unreadable_text, with the node id and its colours) — light text on a light card after a theme change passes every other check. Returns a 0-100 score and a list of issues so you can quickly recommend fixes. Note the score reflects STRUCTURAL checks only — it cannot tell whether the copy suits the business, so a 100/100 site can still read wrong.
suggest_next_step
ChatGPTLook at a site's current shape (pages, sections, header nav) and recent activity (form submissions over 30 days) and return up to 3 prioritized suggestions for what to add or fix next. Use this when the user asks 'what should I do next' or after major edits. Read-only: it returns suggestions and never makes the change itself.
summarize_recent_activity
ChatGPTOne-shot summary of a site's recent activity (default last 7 days, max 90): form submissions broken down by form_type, new contacts, pageviews + uniques, top 3 pages, top 3 referrers. Use this when the user asks 'how's my site doing this week?'. The analytics block reads the same gated data as get_analytics, so on a site whose plan doesn't include analytics this returns billing_gate — use list_submissions / list_contacts directly there instead. Read-only: it reports and changes nothing.
top_pages
ChatGPTReturn the most-viewed pages for a site over a trailing window (default 30 days, max 90), with views, unique visitors, and share-of-traffic percentage. Useful for conversion conversations: 'these are the pages doing work — focus your CTA tweaks here'. Reads the same analytics data as get_analytics, so a site whose plan doesn't include analytics gets a billing_gate response — relay it and move on; it carries no price and no link, by design.
translate
ChatGPTShow the site in other languages at /<code>/... Add a language, read a page, item or region's words, then save a translation of each. Structure is shared across languages, and a page or item with no translation stays at its original address. Translations are part of the draft and go live on publish. Add a language-switcher block to the header so visitors can change language.
undo
ChatGPTOne-step undo. what: 'last_publish' reverts the most recent publish (restored=false when there is nothing to undo); what: 'draft' discards every unpublished change so the draft matches the live site (reset=false when the site was never published; needs confirm: true, so ask first). Neither touches the other: discarding the draft keeps the publish undo available.
unpublish
ChatGPTTake the whole site offline (its address 404s for visitors), or with page_slug just one page. Drafts are kept, so it can be published again. This changes what visitors see — only when the owner explicitly asks to take something down, and never to make room for another site's publish.
unpublish_page
ChatGPTTake ONE page off the live site without affecting the rest. The page's live URL starts returning 404 and it drops out of the auto-generated nav; its draft is kept so you can re-publish it later with publish_page. The rest of the site stays live. Returns unpublished: false if the page had no live version. This changes what's live — only do it when the user explicitly asks to take a page down.
unpublish_site
ChatGPTTake the site offline (its subdomain will 404 for visitors). The live snapshot is archived into the previous_live slot so the owner can re-publish via Undo last publish without re-editing. The draft slot is untouched.
update_page
ChatGPTUpdate a page's metadata: rename its slug, change its title, toggle reorder (sort_order), or merge into its metadata. For a page's search title, description, share image or noindex, use update_seo with page_slug. At least one field must be passed. The page tree itself is NOT touched — use insert_nodes / patch_nodes for tree edits. To change the nav, edit the nav-link nodes directly (insert_nodes / patch_nodes / remove_nodes). Renames: the home page ('/') cannot be renamed (it'd break routing). new_slug must satisfy /^\/[a-z0-9/-]*$/, not collide with any existing page, and not shadow a reserved Sitelas route (edit). By default, every node whose data.href / data.url equals the old slug is rewritten to the new slug in the same draft write — so internal links stay valid after the rename. The response reports the count and the rewritten node ids. Pass rewrite_links: false to skip the auto-rewrite (only useful when the caller intends to surgically patch the hrefs themselves). Sub-pages move with the parent by default — pass cascade: false to leave them behind — and every moved URL 308-redirects from its old path once published, so existing links and search results survive. Reach for this whenever a page's slug no longer matches what the page became: adapting a template to a different line of work renames the visible labels but leaves the paths saying the old thing. Writes a new draft version; call publish_site to push live.
update_seo
ChatGPTSet SEO metadata for a site or a specific page. Per-page mode (with page_slug) writes into the page's metadata.seo and ships as a new draft version — call publish_site to push live. Site-wide mode (no page_slug) writes into the site's metadata.seo and is live immediately, as defaults under each page's own values (see each field). Supported fields: title, description, og_image_url, robots (index|noindex), language (BCP 47 — a page's own for a translated page), and — site-wide only — business (schema.org type, address, telephone, email, logo, same_as for the home page's structured data; use it when the owner asks to appear as a local business in search) and verification (Google Search Console, Bing, Meta or Pinterest ownership tag). Omitted fields are kept; null removes one. get_site returns the current values, including each page's own.
update_site_brief
ChatGPTSet or incrementally update the durable site brief (vibe, category, brand voice, palette/font names, tagline, target audience) used as cross-session memory. Merges field-by-field into the existing brief — omitted fields are preserved, and the decisions[] log is left untouched. Call this once after picking a direction, then again whenever the direction shifts.
update_site_from_fixture
ChatGPTUpdate an existing Sitelas site with an agent-composed fixture. Provide fixture to replace the entire site (all pages + site elements), keeping each existing page's metadata (its own search settings, from get_site) unless the page in fixture carries metadata — {} clears it; or page_updates to modify specific pages only. Updates are saved as a DRAFT — the live URL is UNCHANGED until publish_site is called. The response includes url (the preview URL for reviewing the draft), permanent_url (the live URL — see live_status for what it currently serves), and a next_step hint phrased correctly for the live URL's state. ALWAYS share url and relay next_step verbatim — do NOT say the change is live at permanent_url; it isn't.
upload_data_file
ChatGPTStore a JSON or CSV data file for the site and get a public URL that an embed's script can fetch() — for a browser-side widget that needs a dataset (a product finder, a price table, a store locator). Never paste the data into the embed itself, and never hide it in an image. Sources, exactly one: url (a public link — published Google Sheet, Drive/Dropbox share link, any direct file), content (inline text up to 100,000 characters), or mode:"link" (the owner uploads the file in their browser). Up to 2MB stored. Same name replaces the file at the same URL. A CSV is stored as an array of row objects (as:"csv" keeps it as given). Returns the url, row count, the data's shape and a ready fetch line.
upload_image
ChatGPTStore an image on Sitelas's CDN (resized, WebP, blur placeholder) and return its URL — from url (the normal case), or base64 for a small image you made yourself. Pass image_target to also put it on its spot in the same call; without it, place the URL with patch_nodes or edit_content_item. Local agents with the file on disk use mode: 'link', PUT the bytes, then call again with staging_path. When the PERSON has the photo on their device, this is the wrong tool at any size: call get_editor_link with image_target and give them the one-time photo link.
upload_image_from_data
ChatGPTUpload an image supplied as raw base64 bytes to Sitelas's CDN under the site's storage namespace, and return a stable public URL. WORK DOWN THIS LIST BEFORE CALLING: 1. Image reachable at a URL? Use upload_image_from_url instead — no size ceiling and far cheaper than carrying the bytes yourself. 2. Did the PERSON supply the image — attached to the conversation, on their phone, on their disk? Then this tool is the wrong one AT ANY SIZE. Call get_editor_link and give them the link. Do NOT shrink their photo to fit through here: you would hand back a degraded copy of their own logo, and the editor takes the full-quality original in one drag. Size is not the deciding question — provenance is. 3. Did YOU author the image — an SVG you wrote, a small mark you generated? That is what this tool is for, provided it is under ~30KB. WHY THE ~30KB LIMIT: the base64 travels as tool-call arguments — through your own output. Payloads much beyond 30KB decoded get cut off mid-string and arrive truncated. This is a property of the transport, not of this endpoint, and it applies no matter how you obtained the bytes: reading the file from disk does not help, because you still have to emit it. Resending an oversized payload unchanged fails identically every time. Accepts JPEG/PNG/WebP/GIF/SVG, 10MB decoded hard cap (the practical ceiling is the ~30KB above). mime_type is optional — the format is sniffed from the bytes. Non-SVG images are processed through sharp (resized + converted to WebP). Returns dimensions, byte size, and a blur placeholder for instant LQIP rendering.
upload_image_from_url
ChatGPTFetch an image from a public URL, store it on Sitelas's CDN under the site's storage namespace, and return a stable public URL. Use this whenever you want to add a real image to a site instead of an external URL that may rot. Accepts JPEG/PNG/WebP/GIF/SVG up to 10MB raw. Non-SVG images are processed through sharp (resized + converted to WebP). Returns dimensions, byte size, and a blur placeholder for instant LQIP rendering.
validate_fixture
ChatGPTOptional debugging tool. Validates a Fixture against Sitelas's schema + quality bar, returning errors with paths and an autofixed fixture when issues can be repaired (missing alt text, duplicated h1s, etc.). Do NOT run this before create_site_from_template or update_site_from_fixture as a matter of course — those tools already validate internally and return the same errors. Use this only when you want to sanity-check a composition in isolation (e.g. before spending tokens on a very large fixture) or when a create/update rejected with a validation error you want to inspect in detail. Read-only: it inspects the fixture you pass it and writes nothing — no site is created or changed by calling it.
verify_custom_domain
ChatGPTRe-check DNS for a custom domain and flip the verified flag if Vercel confirms the records resolve. Call this after the user updates DNS at their registrar. On success, returns published plus the live HTTPS URL — which is NULL when the site has never been published, because a verified domain on an unpublished site still 404s; say so and offer publish_site rather than handing over a link. On failure, returns Vercel's specific reason plus the exact records Vercel expected — surface expected_records so the user can spot the mismatch (wrong host, wrong target, missing record). Surface message verbatim either way.
verify_site
ChatGPTIndependently confirm that a site is reachable. Reads the subdomain row, checks live_fixture is set, and screenshots the live URL to verify it actually renders. Use this AFTER create_site_from_template or whenever you want to be sure a URL works before sharing it with the user. Returns ok:true only when DB state + render both pass. Also returns dead_links — internal links whose target route does not exist, the failure a visual check cannot see because the card text reads correctly. Treat a non-empty dead_links as blocking: fix those before telling the user the site is ready. Read-only.
add_content_item
Claudeadd_page
Claudeadd_section
Claudeapply_brand
Claudeapply_palette
Claudecancel_scheduled_job
Claudecapture_url
Claudecreate_collection
Claudecreate_site_from_fixture
Claudecreate_site_from_template
Claudecritique_design
Claudedelete_content_item
Claudedelete_custom_domain
Claudedelete_page
Claudedelete_site
Claudedraft_reply_to_submission
Claudeduplicate_page
Claudeedit_content_item
Claudeexplain_design
Claudefind_images
Claudegenerate_sitemap
Claudeget_analytics
Claudeget_collection_tokens
Claudeget_contact
Claudeget_editor_link
Claudeget_example_fixtures
Claudeget_preview
Claudeget_primitive_schema
Claudeget_site
Claudeget_site_brief
Claudeget_site_changes_since
Claudeget_site_manifest
Claudeget_site_overview
Claudeget_site_tree
Claudeget_version_diff
Claudeinsert_nodes
Claudeinsert_tree
Claudelist_contact_activity
Claudelist_contacts
Claudelist_content_items
Claudelist_content_types
Claudelist_custom_domains
Claudelist_primitives
Claudelist_scheduled_jobs
Claudelist_section_archetypes
Claudelist_site_images
Claudelist_site_templates
Claudelist_site_versions
Claudelist_sites
Claudelist_submissions
Claudemove_nodes
Claudepatch_fixture
Claudepatch_nodes
Claudepreview_collection_item
Claudepublish_content_item
Claudepublish_page
Claudepublish_site
Clauderead_rendered_page
Clauderead_submission
Clauderecord_decision
Clauderemove_nodes
Clauderephrase_all_copy
Claudereplace_images_from_search
Claudereset_draft
Clauderevert_site
Claudesave_theme_preset
Claudeschedule_content_publish
Claudeschedule_publish
Claudescreenshot_page
Claudeselect_template_for_brief
Claudeset_custom_domain
Claudesite_health_check
Claudestart_upgrade
Claudesuggest_next_step
Claudesummarize_recent_activity
Claudetop_pages
Claudeunpublish_page
Claudeunpublish_site
Claudeupdate_page
Claudeupdate_seo
Claudeupdate_site_brief
Claudeupdate_site_from_fixture
Claudeupload_image_from_data
Claudeupload_image_from_url
Claudevalidate_fixture
Claudeverify_custom_domain
Claudeverify_site
Claude