Public page-builder block catalog
Use this catalog when authoring the layout.blocks tree for a public MeroFoundry page. These
are the canonical public page-builder block types. Use the exact, case-sensitive type shown
here. Do not invent a type name from the visual result you want; compose that result from the
available blocks instead.
This catalog intentionally excludes internal Svelte components, admin interface components, renderer implementation details, and aliases.
Block envelope
Section titled “Block envelope”Every block uses this common JSON envelope:
{ "id": "unique-stable-string", "type": "canonical-type-from-this-catalog", "content": {}, "source": {}, "display": {}, "style": {}, "binding": {}, "blocks": []}id identifies the block in the editor and renderer and must be stable and unique within the
page tree. blocks contains child blocks only where the catalog says children are supported.
Omit unused optional objects. Block-specific properties belong in the group shown in the
catalog, for example content.text, source.model_id, or display.variant.
Canonical block types
Section titled “Canonical block types”Exact type |
Category | Children | Use | Main configuration |
|---|---|---|---|---|
accordion |
Layout | Yes | Expandable groups where one or several sections can be open. | content.items; display.type |
alert-dialog |
Feedback | Yes | Confirmation dialog with explicit confirm and cancel actions. | content.title, description, confirmLabel, cancelLabel |
alert |
Feedback | No | Inline status, warning, success, or error message. | content.title, description; display.variant |
aspect-ratio |
Layout | No | Fixed-ratio presentation surface. | display.ratio |
avatar |
Data | No | Person or entity image with a name-derived fallback. | content.name, src; display.size |
badge |
Data | No | Compact label for a status or category. | content.text; display.variant |
breadcrumb |
Navigation | No | Hierarchical navigation trail. | content.items; display.separator |
button-group |
Media | No | Visually grouped set of button items. | content.items; display.variant |
button |
Media | No | Action or navigation control. display.target_blank is the sole tab control: false or omitted opens in the same tab, true opens in a new tab, regardless of URL form. |
content.label, href; display.variant, target_blank |
calendar |
Data | No | Calendar/date-selection display. | display.mode |
card |
Layout | Yes | Bordered content panel with optional title, description, and footer. | content.title, description, footer; display.variant |
carousel |
Media | No | Mixed image/video/title slide gallery through the shared Embla carousel, with optional visible captions and a thumbnail row below the viewport. display.autoPlay is accepted but unsupported (never starts slide advancement). See the carousel media contract. |
content.items (legacy {title}, {type: "image", src, alt, caption?}, {type: "video", src?, poster?, label, caption?, captionsSrc?, captionsLanguage?, captionsLabel?}); display.aspectRatio, fit, captions, showThumbnails, autoPlay (unsupported) |
chart |
Data | No | Aggregated model data as a bar, line, or pie chart. | content.title; source.model_id, aggregation, field_name, filters; display.chartType |
checkbox |
Form | No | Boolean form control. | content.label; display.checked; binding.field |
collapsible |
Layout | Yes | One disclosure section that expands and collapses in the browser. | content.title, content; optional child blocks |
command |
Navigation | No | Searchable command or action list. | content.placeholder, items |
composite_scope |
Layout | Yes | Reactive local-state scope around descendant blocks. | content.local_init; child blocks |
composite |
Layout | No | Instance of a saved reusable composite definition. | content.composite_id, parameter_bindings |
container |
Layout | Yes | General flex or grid wrapper for composing page sections. | display.layout, direction, gap, columns, min_column_width, fixed_columns; child blocks |
context-menu |
Navigation | No | Menu opened from a context-menu gesture. | content.items |
data-table |
Data | No | Paginated tabular records from a model. | content.title, columns; source.model_id, page_size |
date-picker |
Form | No | Date field: a button that opens a calendar and closes on selection. Writes YYYY-MM-DD. |
content.label, placeholder, required; binding.field |
dialog |
Feedback | Yes | Triggered modal dialog containing child blocks. | content.title, description, triggerLabel; child blocks |
dnd-list |
Data | Yes | Data-backed list whose records can be dragged, reordered, or regrouped. | source.source; display.display; child template blocks |
draggable |
Layout | Yes | Makes a composed child region draggable. | display.handle, ghost; child blocks |
drawer |
Feedback | Yes | Triggered drawer containing child blocks. | content.title, description, triggerLabel; child blocks |
drop-zone |
Layout | Yes | Drop target for draggable content. | content.label; display.direction; child blocks |
dropdown-menu |
Navigation | No | Button-triggered menu of actions or links. | content.label, items |
empty |
Data | No | Empty-state title and explanation; also the message in a saved-query container’s binding.empty branch. |
content.title, description |
field |
Form | No | Generic labeled form field selected by field type. | content.label, description; display.fieldType, required; binding.field |
form |
Form | Yes | Create, edit, delete, login, or logout form around bound controls. | source.target_mode, model_id, record_id, defaults, success behavior; child blocks |
heading |
Layout | No | Semantic page or section heading. | content.text, level |
hover-card |
Feedback | Yes | Rich content revealed when its trigger is hovered. | content.triggerLabel, title, description; child blocks |
image |
Media | No | Image from a URL or platform file download href. | content.src, alt; display.fit |
input-group |
Form | No | Text input with a label and visual prefix. | content.label, placeholder, prefix; binding.field |
input-otp |
Form | No | Fixed-length one-time-code input. | content.label; display.length; binding.field |
input |
Form | No | Standard text-like form input. | content.label, placeholder; display.type; binding.field |
item |
Data | No | Compact title, description, and media row. | content.title, description, media |
kbd |
Data | No | Keyboard shortcut notation with an optional label. | content.keys, label |
markdown |
Layout | No | Markdown rendered as real headings, lists, tables, links and code. Raw HTML in the source is dropped. | content.source |
menubar |
Navigation | No | Persistent horizontal menu bar. | content.items |
modal |
Layout | Yes | Modal region opened from a bound trigger parameter. On published renders the server defers a closed modal’s data blocks (no bound data resolves beneath it) and resolves them when the trigger parameter is present in the query, even with an empty value; builder previews continue resolving bound data. | content.trigger_param, title, max_width; child blocks |
native-select |
Form | No | Browser-native select control. | content.label, options, placeholder; binding.field |
navigation-menu |
Navigation | No | Primary navigation links and groups. | content.items |
pagination |
Navigation | No | Page-number navigation. | display.totalPages, currentPage |
popover |
Feedback | Yes | Small triggered overlay containing text or child blocks. | content.triggerLabel, title, content_text; child blocks |
progress |
Feedback | No | Progress indicator with optional numeric display. | content.label; display.value, showValue |
radio-group |
Form | No | Single-choice group of radio options. | content.label, options; binding.field |
range-calendar |
Form | No | Start/end date-range input. | content.label; binding.field |
record_detail |
Data | No | Field/value detail view for one model record. | source.model_id; record context or page parameter |
record-list |
Data | No | Card-style list of records from a model. | content.title, columns; source.model_id, page_size, sort, order |
record_select |
Form | No | Model-backed record picker with optional navigation. | source.model_id, label_field, value_field, navigate_to; content.placeholder |
resizable |
Layout | Yes | Resizable panels arranged horizontally or vertically. | content.panels; display.direction; child blocks |
scroll-area |
Layout | Yes | Height-constrained scrollable region. | display.height; content.content; optional child blocks |
select |
Form | No | Styled select control with explicit options. | content.label, placeholder, options; binding.field |
separator |
Layout | No | Visual divider between sections. | style |
sheet |
Feedback | Yes | Triggered side sheet containing child blocks. | content.title, description, triggerLabel; display.side; child blocks |
sidebar |
Layout | No | Collapsible sidebar with navigation items. | content.title, items; display.collapsible |
skeleton |
Data | No | Loading placeholder. | display.variant, width, height |
slider |
Form | No | Numeric range input. | content.label; display.min, max, value; binding.field |
sonner |
Feedback | No | Toast-style notification. | content.title, description; display.variant |
spinner |
Data | No | Loading spinner with optional label. | content.label; display.size |
stat |
Data | No | One aggregate statistic from model records. | content.label; source.model_id, aggregation, field_name, filters |
switch |
Form | No | Boolean switch control. | content.label; display.checked; binding.field |
table |
Data | No | Static tabular content supplied directly in the layout. | content.headers; display.rows |
tabs |
Layout | Yes | Client-side tabbed content. | content.items; display.defaultTab; optional child blocks |
text |
Layout | No | Plain textual content with template interpolation. | content.text |
textarea-block |
Form | No | Multiline text input. | content.label, placeholder; display.rows; binding.field |
toggle-group |
Media | No | Group of independently or exclusively selected toggles. | content.items; display.type |
toggle |
Media | No | Two-state pressed/unpressed control. | content.label; display.variant, size |
tooltip |
Feedback | No | Short explanatory text shown for a trigger label. | content.text, tooltipText |
video |
Media | No | Native HTML5 video from a same-site file path, with an optional poster, WebVTT captions and accessible label; autoplay is muted and respects reduced motion. | content.src, poster, label, captionsSrc; display.controls, autoplay, muted, loop, fit |
Composition examples
Section titled “Composition examples”A hero-like section is a composition, not a hero block:
{ "blocks": [ { "id": "intro", "type": "container", "display": {"layout": "flex", "direction": "column", "gap": 4}, "blocks": [ { "id": "intro-title", "type": "heading", "content": {"text": "Find your next bike", "level": "h1"} }, { "id": "intro-copy", "type": "text", "content": {"text": "Browse road, gravel, mountain, and city bikes."} }, { "id": "intro-action", "type": "button", "content": {"label": "Browse bikes", "href": "/catalog"}, "display": {"variant": "default"} } ] } ]}A model-backed catalog grid should begin with a supported data block such as record-list or
data-table; there is no bike_grid block. A rich product page should compose container,
image, video, heading, text, badge, record_detail, and navigation blocks; there is no
product_detail block. Embed model editing with a form and bound input blocks; there is no
form_embed block.
Render record-backed images
Section titled “Render record-backed images”An image URL stored in a model record is data, not a visible image. record-list and data-table
render configured field values as text or links; they do not infer that a field named image,
image_url, photo, or similar should become an <img> element. Adding an image field to
content.columns therefore does not create a picture.
To display one image per record, repeat a block with binding.repeat_over, put an image child
inside it, and interpolate the record field into content.src. The model must allow anonymous
reads when the result is a public catalog. The source URL must itself be publicly retrievable by a
browser.
{ "id": "bike-catalog-grid", "type": "container", "display": {"layout": "grid", "columns": 3, "gap": 24}, "style": { "max-width": "1200px", "margin": "0 auto", "padding": "32px 24px" }, "binding": { "item_var": "item", "repeat_over": { "source": "model", "model_id": "<bike-model-id>", "page_size": 24, "sort": "name", "order": "asc" } }, "blocks": [ { "id": "bike-photo", "type": "image", "content": { "src": "{{ item.image_url }}", "alt": "{{ item.name }}" }, "display": {"fit": "cover"}, "style": { "display": "block", "width": "100%", "height": "220px", "border-radius": "12px" } }, { "id": "bike-name", "type": "heading", "content": {"text": "{{ item.name }}", "level": "h2"}, "style": {"margin": "16px 0 4px", "font-size": "1.25rem"} }, { "id": "bike-price", "type": "text", "content": {"text": "${{ item.price }}"}, "style": {"color": "#0f766e", "font-weight": "700"} } ]}Use content.src, not content.href, src at the block root, or a value only stored in the
record. A static image uses the same block without repeat_over, for example:
{ "id": "catalog-hero-photo", "type": "image", "content": { "src": "https://images.example.com/bikes/hero.jpg", "alt": "Bikes ready for a trail ride" }, "display": {"fit": "cover"}, "style": {"width": "100%", "height": "420px", "border-radius": "16px"}}Trusted external image origins
Section titled “Trusted external image origins”External image origins are default-closed: a new application has an empty
trustedImageOrigins list, so configure every external origin before a page references it. When
creating an application through the hosted MCP, provide trusted_image_origins; for an existing
application, call set_trusted_image_origins with the full replacement list. The latter replaces,
rather than appends to, trustedImageOrigins. Trust is exact-origin: an image URL that redirects
to a different origin is not trusted unless that redirect destination is also in
trustedImageOrigins.
For record-backed content.src values such as {{ item.image_url }}, page-write validation cannot
know the resolved origin. Verify the published page in a browser and with a screenshot, confirming
that each expected image has nonzero rendered size and finishes loading; a record value or a
successful direct request is not proof that the page consumes it.
Allowlist only sources you are prepared to expose to visitors: the platform operator can see the resulting visitor requests, while the page author remains responsible for licensing, attribution, privacy, availability, and any later changes to the remote bytes.
Apply visible styling with the hosted MCP
Section titled “Apply visible styling with the hosted MCP”The hosted OAuth MCP can pass a page layout through create_page and update_page. Use the
style object on supported blocks for standard inline CSS properties. In particular,
container, image, heading, text, button, badge, separator, spinner, stat,
record-list, data-table, and chart apply these properties. On stat, record-list,
data-table, and chart they apply to the block’s outer card or section, together with the
authored block id and any style.class (appended after the block’s built-in classes). Use CSS property names such as background-color, color, padding, max-width,
border, and border-radius; values must include units where CSS requires them.
The example below creates an intentionally styled page section using only the current hosted MCP page contract:
{ "id": "catalog-hero", "type": "container", "display": {"layout": "flex", "direction": "column", "gap": 16}, "style": { "background-color": "#0f172a", "color": "#f8fafc", "padding": "64px 32px", "border-radius": "18px", "max-width": "1200px", "margin": "24px auto" }, "blocks": [ { "id": "catalog-hero-title", "type": "heading", "content": {"text": "Find your next ride", "level": "h1"}, "style": {"font-size": "3rem", "line-height": "1.05", "margin": "0"} }, { "id": "catalog-hero-copy", "type": "text", "content": {"text": "Road, gravel, mountain, and city bikes for every kind of ride."}, "style": {"color": "#cbd5e1", "font-size": "1.125rem", "max-width": "680px"} }, { "id": "catalog-hero-action", "type": "button", "content": {"label": "Browse bikes", "href": "/catalog"}, "style": {"margin-top": "8px"} } ]}Prefer explicit CSS properties in style over arbitrary values in style.class. Layouts are
stored in the database, so a dynamically supplied utility class may not be present in the
production CSS bundle.
Page-level style_id is different: it references an existing style in the application’s
workspace. Create one with create_style, or find one with list_styles, then pass its id to
create_page or update_page. Do not invent an ID. Block-level styles remain the way to style
individual blocks.
Before publishing, read the page back and verify that every type appears in this catalog and
that every block has a unique, stable id. Then render the public route in a browser; an HTTP
200 response alone does not prove that the client-side block tree rendered.
Grids on small screens
Section titled “Grids on small screens”A grid container (display.layout: "grid") with display.columns: N shows up to N columns. Each column keeps a minimum width of 16rem and the browser fits as many as there is room for, so the same grid is N columns on a desktop and one column on a phone. Set display.min_column_width (a CSS length such as "12rem", or a number of pixels) to change that minimum. Set display.fixed_columns: true to keep exactly N columns at every width and scroll sideways when they do not fit; that is for boards of drag columns, not for content.
Layout recipes
Section titled “Layout recipes”Start from a layout recipe rather than composing a page from primitives. Fetch the relevant recipe at /llmrecipes/<slug>.txt, then adapt its canonical tree and tenant-specific values: layout-site-shell, layout-hero, layout-feature-grid, layout-contact-form, and layout-record-catalog.
Visual verification after publishing
Section titled “Visual verification after publishing”Complete the authoring loop by creating/populating the application, styling/publishing pages, discovering the public URL, capturing home and then the whole published site, inspecting evidence, repairing, and recapturing. Captures observe only the public surface.
a successful authoring API response is not visual evidence
screenshots do not replace keyboard, accessibility, form-submission, or navigation tests
Use the hosted MCP capture surface, once present in its registry, with these exact argument forms:
capture_page_screenshot(application_id=APP)capture_page_screenshot(application_id=APP, page_id=PAGE_ID)capture_page_screenshot(application_id=APP, path="/catalog")capture_page_screenshot(application_id=APP, viewport="desktop", full_page=True)capture_page_screenshot(application_id=APP, viewport="mobile", full_page=True)capture_site_screenshots(application_id=APP)capture_site_screenshots(application_id=APP, viewport="desktop", max_pages=3)capture_site_screenshots(application_id=APP, viewport="mobile", max_pages=3)Site entries end as CaptureDisposition success, failed, or omitted. A mixture is a partial
result: fix/retry failed pages, while omitted means a server-owned bound prevented an attempt.
Artifact references are bounded. A signed full-resolution artifact link is opaque and short-lived;
when it expires, recapture for a new link rather than relying on it as a permanent URL.
Read the named DiagnosticCounts before changing a layout: blank output and styling that is absent
require checking console_errors and page_errors; missing images and unloaded-image counts map
to unloaded_images; console errors map to console_errors; a blocked asset/request maps to
blocked_requests and must be replaced with an allowed resource; a failed asset/request maps to
failed_requests. Repair the block, data, style, or resource indicated, then recapture.
