Batches

Every change is an operation batch: its fields, the answer it gets and a minimal call.

Updated

Batch fields

FieldTypeRequiredNotes
format"libretto.batch"yes
v1yes
requestIdstring (uuid)yes
baseRevisionsrecord of integeryes
operationsarray of objectyesAt least 1 item. At most 100 items.
operations[].namestringyes
operations[].inputany JSONyes
operations[].refstringno
dryRunbooleannoDefault false.
confirmedarray of stringnoDefault [].

Answer fields

FieldTypeRequiredNotes
requestIdstring (uuid)yes
revisionintegeryesAt least 0.
dryRunbooleanyes
changedbooleanyes
revisionsrecord of integeryes
resultsarray of objectyes
results[].namestringyes
results[].refstringno
results[].outputany JSONyes
inversearray of objectyes
inverse[].namestringyes
inverse[].inputany JSONyes
inverse[].refstringno
findingsarray of objectyes
findings[].ruleIdstringyes
findings[].severitystringyesOne of "error", "warning", "info".
findings[].messagestringyes
findings[].nodeIdstringno
findings[].documentstringno
findings[].fixobjectno

A minimal batch

{
  "format": "libretto.batch",
  "v": 1,
  "requestId": "0b7c6d5e-4f3a-4b2c-8d1e-9f0a1b2c3d4e",
  "baseRevisions": {
    "history": 12,
    "site": 3
  },
  "operations": [
    {
      "name": "site.update",
      "input": {
        "name": "Studio"
      }
    }
  ]
}

Generated from the operation registry and the MCP tool catalogue (source 10d44a53fcf838b5).

Something wrong on this page? Write to docs@librettocms.com.

Libretto docs

Colophon. These docs are a Libretto site: 68 pages in two languages, 20 guide pages imported from Markdown and 41 reference pages generated from the operation registry. Set in Softcore, with code in IBM Plex Mono. Its outline:

/ Libretto docs /start Get started /start/request-access Request access /start/workspace Your workspace /start/first-site Your first site /start/invite-a-client Invite a client /start/connect-claude Connect Claude to Libretto /build Build /build/first-page Build a page /build/layers-and-canvas Layers and canvas /build/site-components Site components /design-system Design system /design-system/tokens Colours, space and themes /design-system/components Components and variants /design-system/fonts Typography and fonts /motion Motion /motion/scenes Scenes and recipes /motion/image-sequences Image sequences /motion/reduced-motion Reduced motion /publish Publish /publish/languages Site languages /publish/versions Publish and versions /publish/members-and-forms Members and forms /publish/domains Domains /handover Hand a site to a client /glossary Glossary /agents Agents and API /agents/mcp MCP server /agents/cli CLI /agents/batches Batches /agents/errors Errors and findings /agents/operations Operations /search Search