Content editing
A starter site made from a kit keeps its words, prices and pictures in content/content.json, with the model that describes them in content/model.json. The design files are separate. That means words can change without anyone risking the design.
There are two ways to edit: a Keystatic admin at /admin in the starter (run npm run dev), or your AI through the MCP.
Get the starter
Use export_style with target html-zip (a static site that opens offline) or astro-zip (the same site as an Astro project). Both are built from the kit that best fits your style.
content_model
Lists every editable field of a kit or a site: key, label, type, length limit and current value, grouped by section, plus settings for forms, newsletter and contact, and the blog post fields. Read-only.
Inputs: kit (a kit id such as melt), or model (your site's content/model.json). Add content (your content/content.json) to get a list of what is wrong with it.
content_edit
Edits the content file from a plain request, or from exact edits. Every value is checked against the model: length limits, prices, one-line fields, allowed markup, and no keys, tokens or passwords in settings. If a request fits more than one field, you get the candidates to choose from instead of a guess.
Inputs: content (the current file), kit or model, and either request (plain words) or edits (a list of {field, value}). Optional: add_post (title, summary, body, date), when, and site_id to file a change note on the site's analytics timeline.
Returns: edited_file (the whole new content file), new_files (a blog post file when you add a post), a patch of changes with the before and after, and an annotation record.
The server never writes to your repository. Save edited_file over content/content.json yourself and commit; your host rebuilds.
Example prompt: "Change the six-week price to 260 and add a blog post about glazing."