Tools: sites
Tools for creating a site, its settings, checking, publishing and history. Full overview: MCP tools.
site_create
Creates a new site and returns its addresses. You do this once per site, before you start writing files. The slug becomes the subdomain and cannot be changed later. Without a template the site is empty; with one it starts from a small, valid, responsive skeleton. Nothing is public until you publish.
Parameters
nametextrequiredA human-readable site name, for example “Pod Lipą Bakery”. Up to 200 characters.
slugtextrequiredThe subdomain: 3–40 characters, lowercase letters, digits and single hyphens, not starting or ending with a hyphen. It must be unique across all of Sajto. The words www, api, app, admin, mail and preview are reserved.
descriptiontextoptionalA short description of what the site is for and who it is aimed at (up to 2000 characters). It is stored with the site so that later conversations can read it back.
languagetextoptionalThe content language as a BCP 47 code, for example pl, en or en-GB. Defaults to en. It goes into the lang attribute in HTML, so for a Polish site pass pl.
referenceUrlslist of textsoptionalUp to 5 addresses of sites you want inspiration from. Each is analysed right away and a short summary comes back in the response. A site that cannot be fetched does not stop the creation.
templatetextoptionalA starter template: landing, business-card, portfolio or blog. The files go into the working copy with the name, description and language filled in; the rest of the text is placeholder text to replace.
- The response contains the public address and the preview address of the working copy.
- The number of sites depends on the account's plan (free: 1). When the limit is reached, the tool returns a message about the plan.
Example request to the assistant
Build a business-card site for the “Pod Lipą” bakery, slug podlipa, starting from the business-card template.
site_list
Lists your sites: slug, name, public address and the live version number (empty if the site has never been published).
read-only, changes nothing
This tool has no parameters.
Example request to the assistant
Show me the list of my sites.
site_get
Returns everything needed to continue working on a site: settings, addresses, the file tree with sizes, the live version, recent changes and connected domains. It does not return file contents. The assistant calls it at the start of work on an existing site, so it builds on what is there instead of overwriting it.
read-only, changes nothing
Parameters
slugtextrequiredThe site slug, as returned by site_list or site_create.
Example request to the assistant
Let’s get back to the podlipa site: add a section with a cake price list.
site_update_settings
Changes the site settings. Pass only the fields to change; the rest stay as they are, but at least one is required. Settings belong to the working copy and take effect at the next publish (or immediately when automatic publishing is on).
Parameters
slugtextrequiredThe site slug.
nametextoptionalA new site name (up to 200 characters).
descriptiontextoptionalA new description (up to 2000 characters).
languagetextoptionalA new content language as a BCP 47 code, for example pl.
autoPublishyes/nooptionaltrue: every file change is published automatically a few seconds after the last edit (convenient, but visitors may briefly see an unfinished site). false: nothing goes live until you publish.
sitemapExcludelist of textsoptionalPaths of HTML files left out of the generated sitemap.xml, for example thanks.html. Replaces the whole list; an empty list clears it.
Example request to the assistant
Change the site language to Polish and leave thanks.html out of the sitemap.
site_validate
Checks the working copy and says exactly what to fix. It reports errors (broken for visitors or against the server’s rules) and warnings (accessibility, search ranking, speed), each with the file, line, code fragment and a hint on how to fix it. Read-only, takes a fraction of a second.
read-only, changes nothing
Parameters
slugtextrequiredThe site slug.
- The Validation chapter describes the full list of rules.
Example request to the assistant
Check the site before publishing and fix all errors.
site_diff
Shows what has changed: which files were added, removed or modified, with sizes, line counts and (for modified text files) the changed lines. With no arguments it compares the live version with the working copy, i.e. exactly what is not public yet. The response is size-limited: only the first modified files show their lines.
read-only, changes nothing
Parameters
slugtextrequiredThe site slug.
fromVersionnumberoptionalThe “before” version, from the version history. Defaults to the live version.
toVersionnumberoptionalThe “after” version. Defaults to the working copy, so unpublished changes are visible.
- Generated files (sitemap.xml, robots.txt, 404.html) are ignored when comparing with the working copy.
Example request to the assistant
Show me exactly what will change on the live site if I publish now.
site_publish
Makes the working copy public. It creates an immutable, numbered version of all files and switches the public site to it in one atomic step, so visitors never see a half-published site. If nothing has changed since the last version, no new version is created and the latest one is simply made live again. The response contains the version number, the public address and a short quality summary.
Parameters
slugtextrequiredThe site slug.
messagetextoptionalA short note about what the version contains, for example “Added the contact page”. Shown in the version history.
- Missing sitemap.xml, robots.txt and 404.html files are generated automatically.
- The quality result never blocks publishing, but errors mean something is broken for visitors.
- Up to 30 new versions per hour for one site.
Example request to the assistant
Publish the site with the message “Added the contact page”.
site_history
Lists published versions from the newest: number, message, creation time, number of files and which one is live. Used to pick a version to restore.
read-only, changes nothing
Parameters
slugtextrequiredThe site slug.
Example request to the assistant
Show the publication history of the podlipa site.
site_rollback
Makes an earlier version the public one, instantly. Only the public site changes: the working copy is left as it is, so unpublished edits are kept, and the next publish creates a new version from the working copy (it does not revert it).
Parameters
slugtextrequiredThe site slug.
versionnumberrequiredThe version number to restore, from the version history.
- You can restore a version of any age: Sajto keeps every published version.
Example request to the assistant
Go back to version 3 of the podlipa site.

