Effect operations

3 operations named effect.*. Every one runs in a batch through apply_ops, dry_run_ops, the CLI or the admin.

Updated
OperationWhat it doesPermissionConfirmation
effect.listList the effect presets the editor offers, the built-in effects first, then the site's own: each a reveal (meta.reveal), transitions (one transition value in scope, base when absent) or both.site.readnone
effect.saveSave the reveal and the transition declarations of a page node as a site effect preset.site.editnone
effect.deleteDelete a site effect preset; nodes it was applied to keep their reveal and transitions.site.editdestructive

effect.list

List the effect presets the editor offers, the built-in effects first, then the site's own: each a reveal (meta.reveal), transitions (one transition value in scope, base when absent) or both. Apply one with tree.commit: set_meta with the reveal, set_style with the transitions.

permission: site.readreads onlyclass: read

Example input

{}

Input

The input is a record; see the schema below.

{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Output

FieldTypeRequiredNotes

Try it

yarn splash effect.list '{}' --dry-run

effect.save

Save the reveal and the transition declarations of a page node as a site effect preset. The transitions are read from scope, else from the first scope of the node that declares one; a node with neither is refused.

permission: site.editwrites: presetsclass: transactionundo: yes

Example input

{
  "pageId": "6f1d2c3b-4a59-4e8d-9c7b-1a2b3c4d5e6f",
  "nodeId": "claim001",
  "label": "Soft lift",
  "scope": "s::hover"
}

Input

FieldTypeRequiredNotes
pageIdstringyesAt least 1 character.
nodeIdstringyes
labelstringyesAt least 1 character. At most 80 characters.
idstringno
scopestringno

Output

FieldTypeRequiredNotes
idstringyes
labelstringyesAt least 1 character. At most 80 characters.
revealobject | objectno
transitionsarray of objectnoAt least 1 item.
transitions[].propertystringyes
transitions[].durationstringyesAt least 1 character.
transitions[].easingstringnoAt least 1 character.
transitions[].delaystringnoAt least 1 character.
scopestringno
sourcestringyesOne of "builtin", "site".

Try it

yarn splash effect.save '{"pageId":"6f1d2c3b-4a59-4e8d-9c7b-1a2b3c4d5e6f","nodeId":"claim001","label":"Soft lift","scope":"s::hover"}' --dry-run

effect.delete

Delete a site effect preset; nodes it was applied to keep their reveal and transitions.

permission: site.editwrites: presetsclass: transactionconfirm: destructiveundo: yes

Example input

{
  "effectId": "soft-lift"
}

Input

FieldTypeRequiredNotes
effectIdstringyes

Output

FieldTypeRequiredNotes
successtrueyes

Needs confirmed: ["destructive"] on the batch, which the single-operation CLI form does not set: put it in a batch file and run yarn splash apply <file> --dry-run.

Generated from the operation registry and the MCP tool catalogue (source 29edf0002cbbde1c).

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