Tool reference · 32 tools

Pages, design and site versions

The Page Builder: pages, sections, the design system, custom CSS, previews, publishing, page versions and whole-site versions.

Ask it in plain words

  • "Make a landing page for our summer camp in a new site version."
  • "Make the buttons pills and the corners round, then show me a preview."
  • "Check the camps page for problems before we publish."

Worked examples: Build a landing page in a site version, Change the design, Add CSS to one page.

list_section_types

Page builder: section types ReadsWeb developer

Every section type this site can use, with its layouts (variants), fields and blocks. Read this before adding sections. Types starting with data: show live data from the site (schedule, events, prices) and stay up to date by themselves. Field types: text (one line), md (light markdown), plain (text as typed, blank lines between paragraphs), lines (an array of one-line strings), buttons (an array of { label, href, style: "primary" or "secondary" }), link, image ({ src, alt }), select, bool, youtube (a YouTube link or the video's 11-character id; kept as the id), videofile (one of the site's own uploaded videos: pass the whole object list_videos gives, { src, w, h, seconds, captions, speech, poster }). The video section shows a video that loads only when a visitor presses play: either the site's own uploaded video (file, from list_videos; it plays from the site's own address with its captions) or a YouTube video (video: its link). Set one, not both. Give it a title (the play button reads "Play video: <title>") and, if you like, a poster picture from list_pictures (an uploaded video has its own poster frame; YouTube's own thumbnails are never used).

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_section_types",
    "arguments": {}
  }
}

get_design_system

Page builder: the design ReadsWeb developer

The site's design: color schemes (with their contrast), fonts, type scale, corners, button, card and photo styles, the personalities to start from, and any warning that the site looks too much like another one. For owners, managers and developers it also has the site's custom CSS (draft.customCss) and css: the rules CSS must follow and how a page's own CSS is kept to that page.

ParameterTypeDescription
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_design_system",
    "arguments": {}
  }
}

list_pictures

Page builder: pictures ReadsWeb developer

The site's picture library: each picture's address (src), alt text and size. Use these addresses for image fields (with their alt text, or better words for that spot); new pictures are uploaded by the owner under Pictures in the back office.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_pictures",
    "arguments": {}
  }
}

list_pages

Page builder: pages ReadsWeb developer

The site's builder pages with their kind (page, or the site's own kinds such as article) and status (draft only, published, or published with unpublished changes). kind lists only that kind.

ParameterTypeDescription
kindstringOnly pages of this kind ("page", "article", ...).
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_pages",
    "arguments": {}
  }
}

get_page

Page builder: one page ReadsWeb developer

One page: its draft document (sections with ids), the live document, and an outline.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_page",
    "arguments": {
      "page": "<page>"
    }
  }
}

create_page

Page builder: new page Changesdry_runWeb developer

A new page as a draft, from a template or from your own sections. Templates: blank, landing, about, coming-soon (a photo with opening news and a sign-up button), camp, parties, hiring; they use the site's own photos and live sections, and the words to change are in [square brackets] (check_page lists them). kind makes another kind of page the site has (list_pages names them; an article lives at /articles/<address> and starts from the site's article sections). Not visible to visitors until published.

ParameterTypeDescription
kindstringThe kind of page: "page" (the default) or one list_pages names, such as "article".
slug requiredstringIts address without the slash ("summer-camps"); "" is the home page.
title requiredstringThe page's title (its heading and the menu label unless nav.label says otherwise)
templatestring: blank | landing | about | coming-soon | camp | parties | hiringStart from a ready-made page; blank starts empty
sectionsarray of objectYour own sections instead of a template: [{ type, variant, scheme, settings, blocks }]
sections[].typestringA section type from list_section_types (e.g. hero, cards, faq, or data:schedule).
sections[].variantstringThe layout, one of the type's variants. Leave out for the first.
sections[].schemestringA color scheme name from get_design_system (e.g. light, dark, accent).
sections[].hiddenbooleanKeep the section on the page but don't show it.
sections[].showstring: all | phone | computerWhere visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere.
sections[].overlaystring: none | light | medium | dark | lightenThe shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice.
sections[].dividerobjectShapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them.
sections[].anchorstringThe section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it.
sections[].ornamentbooleanA small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections.
sections[].liftbooleanThe section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section.
sections[].stillbooleanThe photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion.
sections[].photoobjectA photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it.
sections[].settingsobjectThe section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people).
sections[].blocksarray of objectThe section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given.
seoobjectSearch results: { title, description }
seo.titlestringThe title in search results (about 60 characters)
seo.descriptionstringThe description in search results (about 155 characters)
navobjectThe page's menu entry: { show, label, order }
nav.showbooleantrue adds the page to the website's menu
nav.labelstringThe menu's words for the page; leave out to use the title
nav.orderintegerWhere it goes in the menu, from 1 (leftmost)
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_page",
    "arguments": {
      "slug": "<slug>",
      "title": "<title>",
      "dry_run": true
    }
  }
}

update_page

Page builder: page details Changesdry_runWeb developer

Change a page's title, address, search title and description, menu entry, or its own CSS (draft). css is CSS for this page only (owners, managers and developers; up to 20,000 characters): every selector is kept to the page for you, so `.pb-t-hero h1 { letter-spacing: .04em }` becomes `[data-pb-page="/camps"] .pb-t-hero h1 {...}`, and `&` or `:scope` means the page itself. Style the page's classes: .pb-sec (each section, with id = its section id), .pb-t-<type>, .pb-v-<layout>, .pb-s-<scheme>, .pb-btn-1/.pb-btn-2, .pb-card, and the design's variables (var(--pb-accent), var(--pb-text), var(--pb-font-h), ...). Rules: no @import, no < or backslashes, url() only for this site's /media/ and /fonts/ files. css replaces the page's CSS; "" removes it. Check the preview on a phone and a computer before publishing.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
titlestringThe page's new title
slugstringThe page's address after the domain, e.g. summer-camp for /summer-camp
seoobjectSearch results: { title, description }; send only what changes
navobjectThe menu entry: { show, label, order }; send only what changes
cssstringThis page's own CSS (replaces what it has; "" removes it). Kept to this page automatically.
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_page",
    "arguments": {
      "page": "<page>",
      "dry_run": true
    }
  }
}

add_section

Page builder: add a section Changesdry_runWeb developer

Add a section to a page's draft, at the end or before/after another section.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
type requiredstringA section type from list_section_types (e.g. hero, cards, faq, or data:schedule).
variantstringThe layout, one of the type's variants. Leave out for the first.
schemestringA color scheme name from get_design_system (e.g. light, dark, accent).
hiddenbooleanKeep the section on the page but don't show it.
showstring: all | phone | computerWhere visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere.
overlaystring: none | light | medium | dark | lightenThe shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice.
dividerobjectShapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them.
divider.topstring: none | angle | slant | curve | wave | mountains | triangleThe shape on the section's top edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge
divider.bottomstring: none | angle | slant | curve | wave | mountains | triangleThe shape on the section's bottom edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge
anchorstringThe section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it.
ornamentbooleanA small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections.
liftbooleanThe section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section.
stillbooleanThe photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion.
photoobjectA photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it.
settingsobjectThe section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people).
blocksarray of objectThe section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given.
beforestringPut it before this section id.
afterstringPut it after this section id.
indexintegerOr its position, 0 = first.
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "add_section",
    "arguments": {
      "page": "<page>",
      "type": "<type>",
      "dry_run": true
    }
  }
}

update_section

Page builder: change a section Changesdry_runWeb developer

Change one section: its layout, color scheme, hidden state, where it shows (show: all, phone or computer), the shade over its photo (overlay), the shapes on its edges (divider), a photo behind it (photo), some of its fields (others stay), or all of its blocks.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
id requiredstringThe section id from get_page.
typestringA section type from list_section_types (e.g. hero, cards, faq, or data:schedule).
variantstringThe layout, one of the type's variants. Leave out for the first.
schemestringA color scheme name from get_design_system (e.g. light, dark, accent).
hiddenbooleanKeep the section on the page but don't show it.
showstring: all | phone | computerWhere visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere.
overlaystring: none | light | medium | dark | lightenThe shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice.
dividerobjectShapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them.
divider.topstring: none | angle | slant | curve | wave | mountains | triangleThe shape on the section's top edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge
divider.bottomstring: none | angle | slant | curve | wave | mountains | triangleThe shape on the section's bottom edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge
anchorstringThe section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it.
ornamentbooleanA small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections.
liftbooleanThe section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section.
stillbooleanThe photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion.
photoobjectA photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it.
settingsobjectThe section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people).
blocksarray of objectThe section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given.
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_section",
    "arguments": {
      "page": "<page>",
      "id": "<id>",
      "dry_run": true
    }
  }
}

move_section

Page builder: move a section Changesdry_runWeb developer

Move a section before or after another, or to a position.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
id requiredstringThe section to move, from get_page
beforestringPut it before this section id.
afterstringPut it after this section id.
indexintegerOr its position, 0 = first.
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "move_section",
    "arguments": {
      "page": "<page>",
      "id": "<id>",
      "dry_run": true
    }
  }
}

duplicate_section

Page builder: copy a section Changesdry_runWeb developer

Copy a section right after itself (to try a different layout side by side, then remove one).

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
id requiredstringThe section to copy, from get_page
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "duplicate_section",
    "arguments": {
      "page": "<page>",
      "id": "<id>",
      "dry_run": true
    }
  }
}

remove_section

Page builder: remove a section Changesdry_runWeb developer

Remove a section from the draft (the live page keeps it until you publish).

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
id requiredstringThe section to remove, from get_page
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "remove_section",
    "arguments": {
      "page": "<page>",
      "id": "<id>",
      "dry_run": true
    }
  }
}

check_page

Page builder: check a page ReadsWeb developer

Review a page's draft before publishing, without changing anything: every rule (fields, links, alt text, headings) plus the review's findings, each with severity (error or warning), the section it's in, the problem in plain words and the exact fix: missing or poor alt text, heading order, empty or long headings, vague link words ("click here"), buttons that go nowhere, color contrast, pictures too small for their spot, very long words, and the page's CSS (removed focus outlines, text under 12px, fixed widths wider than a phone, hidden menus, motion without a reduced-motion guard, unreadable color pairs). Fix the errors (and ideally the warnings) with the other tools, then check again. The editor's Review also checks the layout at phone and computer sizes.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "check_page",
    "arguments": {
      "page": "<page>"
    }
  }
}

preview_page

Page builder: preview link ReadsWeb developer

A private link to the page's draft in the draft design, good for 24 hours, with the review's findings (see check_page). Share it with the person to look at before publishing (check it on a phone too).

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "preview_page",
    "arguments": {
      "page": "<page>"
    }
  }
}

set_design

Page builder: change the design Changesdry_runWeb developer

Change the site's design in the draft: start from a personality and/or change tokens (schemes, fonts, scale, base, headingWeight, headingCase, radius, radiusPx (an exact corner size in pixels), buttons, cards, photos, dividers, spacing, width, motion; a scheme may also have the site's own roles listed by get_design_system). It affects every page once published (on some sites the whole site, not only builder pages). Answers with contrast problems (the change is refused until fixed) and warnings if the site would look too much like another. custom_css is the site's own CSS for what the tokens can't do (owners, managers and developers; up to 60,000 characters): it applies to every page after the design, replaces the CSS the site has ("" removes it; leave it out to keep it), and follows the rules in get_design_system's css (no @import, no < or backslashes, url() only for this site's /media/ and /fonts/ files). For one page only, use update_page's css.

ParameterTypeDescription
personalitystringStart from a personality: its key or name from get_design_system (personalities)
changesobjectDesign tokens to change, by name from get_design_system, e.g. { "radius": "round", "headingCase": "upper" }
custom_cssstringThe site's whole custom CSS (replaces it; "" removes it). Read the current one in get_design_system's draft.customCss first and change that.
dry_runbooleanCheck the change and show the result without saving it.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_design",
    "arguments": {
      "dry_run": true
    }
  }
}

publish_page

Page builder: publish a page ChangesconfirmWeb developer

Put a page's draft on the live site. Only those who publish can (owners and managers); ask the person first and pass confirm: true after they agree. The review (check_page) runs first. If it finds problems the page isn't published and you get findings: blocked: true means this person's role can't publish while errors remain, so fix every error with the other tools and try again; needsAnyway: true means you may fix them, or (only if the person agrees) call again with anyway: true and a reason in a few words, which is kept with the version.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
notestringA short note on what changed, kept in the page's version history
confirmbooleanMust be true, after the owner has said yes
anywaybooleanPublish over the review's findings (the person agreed). Needs reason.
reasonstringWhy it's published anyway, a few words.
versionstringWork inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "publish_page",
    "arguments": {
      "page": "<page>",
      "confirm": true
    }
  }
}

publish_design

Page builder: publish the design ChangesconfirmWeb developer

Put the draft design live on every page. Owners and managers only; ask first and pass confirm: true. The review checks the design's colors and the site's custom CSS first; it answers like publish_page (blocked, or needsAnyway with anyway and reason).

ParameterTypeDescription
notestringA short note on what changed, kept in the design's version history
confirmbooleanMust be true, after the owner has said yes
anywaybooleantrue publishes even though the review found problems (owners only, after they agree); give the reason
reasonstringWhy it goes live anyway, in the owner's words; kept in History with the change
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "publish_design",
    "arguments": {
      "confirm": true
    }
  }
}

list_versions

Page builder: versions ReadsWeb developer

Published versions of a page (or of the design: page "design"), newest first.

ParameterTypeDescription
page requiredstringThe page: its address ("/camps", "/" for home) or id.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_versions",
    "arguments": {
      "page": "<page>"
    }
  }
}

restore_version

Page builder: put a version back ChangesconfirmWeb developer

Put an earlier version back into the draft; with live: true (owners and managers, confirm: true) straight onto the site.

ParameterTypeDescription
version requiredintegerThe version's number, from list_versions
livebooleantrue puts it straight on the live site (owners and managers, with confirm: true); otherwise it becomes the draft
confirmbooleanMust be true, after the owner has said yes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "restore_version",
    "arguments": {
      "version": 1,
      "confirm": true
    }
  }
}

list_site_versions

Page builder: site versions ReadsWeb developer

The site's versions, like Shopify's theme library: the one that's live, the ones being worked on (each a copy of the whole site: design, site and page CSS, every page, and the site's menu and logo), and the library of versions that were live before (ready to restore). Each has its id, name and preview link.

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_site_versions",
    "arguments": {}
  }
}

create_site_version

Page builder: new site version ChangesWeb developer

Start a new version: a copy of the live site (or of another version: from) to change without touching the live site. Then pass its id as `version` to get_page, update_section, set_design and the other page and design tools; nothing changes for visitors until publish_site_version. Answers with its preview link (14 days) to share.

ParameterTypeDescription
name requiredstringA short name, like "Spring refresh".
notestringWhat this version is for, shown in the version library, e.g. Fall redesign
fromstringCopy this version id instead of the live site (a library version, to start from an old look).
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_site_version",
    "arguments": {
      "name": "<name>"
    }
  }
}

get_site_version

Page builder: one site version ReadsWeb developer

One version: its status, pages (with the ids to use as page inside it), and preview link.

ParameterTypeDescription
version requiredstringThe version id, or "live".
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_site_version",
    "arguments": {
      "version": "<version>"
    }
  }
}

publish_site_version

Page builder: publish a site version ChangesconfirmWeb developer

Put a whole version live at once: its design and every page (pages not in it come off the site; their drafts are kept), and the site's menu and logo. The version that was live goes into the library. Only those who publish can; ask the person first and pass confirm: true. The review runs on every page first and answers like publish_page (blocked: fix the errors in the version and try again; needsAnyway: fix, or with the person's agreement call again with anyway: true and a reason).

ParameterTypeDescription
version requiredstringThe version's id, from list_site_versions
confirmbooleanMust be true, after the owner has said yes
anywaybooleantrue publishes even though the review found problems (owners only, after they agree); give the reason
reasonstringWhy it goes live anyway, in the owner's words; kept in History with the change
notestringA short note on what this version changes, kept in the library
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "publish_site_version",
    "arguments": {
      "version": "<version>",
      "confirm": true
    }
  }
}

restore_site_version

Page builder: restore a site version ChangesconfirmWeb developer

Put a version from the library back live (one step, the same as publishing it again; the review runs and owners can publish anyway with a reason). Ask first and pass confirm: true.

ParameterTypeDescription
version requiredstringThe library version's id, from list_site_versions
confirmbooleanMust be true, after the owner has said yes
anywaybooleantrue publishes even though the review found problems (owners only, after they agree); give the reason
reasonstringWhy it goes live anyway, in the owner's words; kept in History with the change
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "restore_site_version",
    "arguments": {
      "version": "<version>",
      "confirm": true
    }
  }
}

set_coaches_layout

Page builder: Coaches page layout Changesdry_run

See or change the layout of the Coaches page (how the coach cards are arranged). Without layout: the layouts, the one live now, the one in the draft and the one suggested for this team (from how many coaches there are and how many have a bio and photos). With layout: saves it into the Coaches page's draft and gives a preview link; it goes live only with publish_page, so show the person the preview and ask before publishing.

ParameterTypeDescription
layoutstring: featured | pair | lead | pair-lead | grid | photos | list | suggestedThe layout: featured (one big card, then a grid), pair (two big cards side by side, then a grid), lead (two big cards one above the other, then a grid), pair-lead (two side by side, a third big card, then a grid), grid (every coach the same size), photos (every coach a big photo card, two to a row), list (a compact list), or suggested. Leave out to see the choices and the suggestion first.
dry_runbooleanCheck without saving.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_coaches_layout",
    "arguments": {
      "dry_run": true
    }
  }
}

get_holiday_decorations

Holiday decorations Reads

Which holidays decorate the website, their dates this year, the look each one has and every look to choose from (with a preview link for each).

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_holiday_decorations",
    "arguments": {}
  }
}

update_holiday_decorations

Change holiday decorations Changesdry_run

Turn holidays on or off and pick the look for any holiday (owners only). Each holiday shows by itself on its dates. Send only what changes; suggest the preview links from get_holiday_decorations first.

ParameterTypeDescription
turn_onarray of stringHoliday keys to decorate for (from get_holiday_decorations)
turn_offarray of stringHoliday keys to stop decorating for
looksobjectHoliday key -> look key, e.g. { "christmas": "wonderland" }
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_holiday_decorations",
    "arguments": {
      "dry_run": true
    }
  }
}

unpublish_page

Take a page off the website Changesdry_runconfirmWeb developer

Take a published Page Builder page off the website (owners and managers), the same as Take Down in Website > Pages. The draft and every version are kept, so publish_page puts it back. A built-in page (Classes, Pricing...) taken down shows the site's own version of that page again. Needs the owner's yes and confirm: true.

ParameterTypeDescription
page requiredstringThe page's address (like /winter-camp) or its id from list_pages
confirmbooleanMust be true, after the owner has said yes
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "unpublish_page",
    "arguments": {
      "page": "<page>",
      "dry_run": true
    }
  }
}

set_site_personality

Start the design from a personality Changesdry_runWeb developer

Start the website's draft design from one of the ready-made personalities (owners and managers), the same as Website > Pages > Design > Start From a Personality: colors, corners, buttons and cards change; the site's fonts, its own CSS and NinjaHQ's part stay. Only the draft changes: check a preview, then publish_design puts it live after the owner says yes. get_design_system lists the personalities.

ParameterTypeDescription
personality requiredstringA personality's key or name from get_design_system (personalities)
dry_runbooleantrue = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "set_site_personality",
    "arguments": {
      "personality": "<personality>",
      "dry_run": true
    }
  }
}

list_videos

The website's own videos Reads

The videos the gym uploaded to its website (at most 10, up to 2 minutes each), newest first: video_id, title, length, captions (speech: "none" no talking, "open" words already on the video, "file" a caption file), and the pages that use it. To show one in a Video section, pass its whole "file" object as the section's file setting (add_section or update_section, type "video") and leave the YouTube link (video) empty. New videos are added in the page editor: Website > Pages, edit a page, a Video section, Upload a Video, Choose a Video, Upload a New One (a phone or computer; the video is made smaller there first).

Takes no parameters.

Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "list_videos",
    "arguments": {}
  }
}

update_video

Rename, re-caption or delete a website video Changesconfirm

Change one of the website's own videos (list_videos gives the ids). rename: a new title for the library (pages keep their section's own title). captions: say whether there is talking and, if so, give the captions as .srt or .vtt text. delete: removes the video for good, only after the owner says yes (confirm: true), and only when no page uses it (take it out of those Video sections first).

ParameterTypeDescription
video_id requiredstringThe video's id, from list_videos
action requiredstring: rename | captions | deleterename, captions (add or change them) or delete
titlestringrename: the new title (the play button says it)
speechstring: none | open | filecaptions: none = no talking, open = the words are already on the video, file = captions given in caption_text
caption_textstringcaptions with speech file: the text of an .srt or .vtt caption file (times and words)
confirmbooleandelete: must be true, after the owner has said yes
Call shape
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_video",
    "arguments": {
      "video_id": "<video_id>",
      "action": "rename",
      "confirm": true
    }
  }
}

All 318 tools

Ask NinjaHQ

Answers from our Help Center and website

Ask anything about NinjaHQ, or try:

AI answers from NinjaHQ's own pages and can make mistakes. Your questions are sent to Anthropic, the AI company, to answer; NinjaHQ doesn't keep them. Privacy