lorem

v0.2.3
io.github.AnkitaShanbhag30/lorem Checked 3 days ago Published 3 months ago

Slide decks over MCP: read and write decks as code, run Lorem's full AI pipeline, export PPTX/PDF.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_decks List decks

List every deck with its id, title and slide count. Start here to find a deck to work on.

read_outline Read a deck outline

A compact index of a deck: one line per slide with its id, layout and title. Far cheaper than reading the whole deck — use this first, then read only the slides you need.

ParameterTypeDescription
deckId *stringDeck id from list_decks

read_slide Read one slide

The full source of a single slide in Lore, the Lorem deck language, ready to edit and pass back to replace_slide.

ParameterTypeDescription
deckId *string
slideId *stringSlide id from read_outline

read_deck Read a whole deck

The entire deck as source, including its theme frontmatter. Expensive for large decks — prefer read_outline plus read_slide unless you need to restyle everything at once.

ParameterTypeDescription
deckId *string

add_slides Add slides

Append or insert slides written in Lore. Prefer archetype blocks (`== hero`, `== statRow`) — they produce designed layouts. Call list_layouts to see them, or language_reference for the full syntax.

ParameterTypeDescription
deckId *string
dsl *stringOne or more `== <archetype>` blocks, no frontmatter
atIndexinteger0-based insert position; appends when omitted

replace_slide Replace one slide

Rewrite a single slide, keeping its id so comments and collaborators' selections survive. Other slides are untouched, so this is safe while someone else is editing them.

ParameterTypeDescription
deckId *string
dsl *stringOne block replacing this slide
slideId *string

choreograph_slide Choreograph a slide's motion

Re-time one slide's element entrances as a coordinated sequence: cascade (role-ordered stagger), focus-pull (media lands first), rise-ensemble (everything rises together), or typewriter-lead (the title types itself out first). Timing follows the deck stylekit's motion personality; loop and exit clips the slide already carries are preserved.

ParameterTypeDescription
deckId *string
pattern *stringChoreography pattern to apply
slideId *stringSlide id from read_outline

delete_slide Delete a slide

Remove a slide by id.

ParameterTypeDescription
deckId *string
slideId *string

apply_deck Apply a whole deck document

Replace the deck with a full document (frontmatter plus blocks). Only slides that actually changed are rewritten, so untouched slides keep their ids. Use for restyling or reordering everything at once.

ParameterTypeDescription
deckId *string
dsl *string

reroll_deck Re-roll a deck's design

Redraw a deck's design without touching a word of its copy or regenerating a single image. Every slide is rebuilt from its own content with a new Style and/or a new seed: different composition, motion, crop, framing, type and colour. The text, the images, the speaker notes and each slide's layout ARCHETYPE are pinned, so this costs nothing to run and can be repeated freely — it is the tool to reach for when the words are right and the look is not. Distinct from applying a Style through apply_deck, which patches attributes in place and keeps the composition; a re-roll throws the composition a…

ParameterTypeDescription
deckId *string
seedstringReproducible draw; the same seed gives the same design.
styleIdstringA Style id from list_styles. Omit to redraw with the deck's current Style.

create_deck Create a deck

Make a new deck, optionally from a template (list_templates) and optionally with its slides written in Lore.

ParameterTypeDescription
dslstringSlides to start with, as `==` blocks
templateIdstringTemplate id, e.g. tpl_ember
titlestring

list_layouts List slide layouts

Every designed layout (archetype) with the content slots it takes. Choosing a layout and filling its slots is how you get a professional-looking slide — never place elements by hand unless no layout fits.

list_templates List deck templates (deprecated — a template is a skeleton × Style)

DEPRECATED — each of these 15 flat seed ids is nothing more than one content skeleton crossed with one Style, under a fixed name. Prefer list_skeletons + list_styles + create_deck_from_style, which reaches all 19 curated Styles (not just the 15 pre-paired ones) and generates real imagery. The ids keep working forever via create_deck's templateId; the listing names the pair behind each.

list_personalities List Deck Personalities (deprecated alias for list_styles)

DEPRECATED — use list_styles, which lists the same curated Styles plus the user's own. Kept so existing callers keep working. Lists the 19 curated Styles only.

list_skeletons List content skeletons

Slide sequences a Style can be crossed with — what the deck contains, independent of how it looks. Pass one of these plus a styleId to create_deck_from_style.

create_deck_from_style Create a deck from a Style

Build a new deck by crossing a content skeleton (list_skeletons) with a Style (list_styles) — the deck's whole look: palette, fonts, spacing, shape language, decor, atmosphere, motion and transitions. A Style is a Style whether it was curated, generated from a described vibe, or imported from a .pptx / design system / website brand; styleId takes any of them. Generates real imagery matching the Style's art direction by default.

ParameterTypeDescription
skeletonId *stringSkeleton id from list_skeletons, e.g. pitch
styleId *stringStyle id from list_styles — a curated id like `riso-pop` or a saved-style uuid
generateImagesbooleanDefault true
titlestring

create_deck_from_vibe Create a deck from a Style (deprecated alias)

DEPRECATED — use create_deck_from_style. Identical behavior; `personalityId` is accepted as an old spelling of `styleId`. Kept so existing callers keep working.

ParameterTypeDescription
skeletonId *stringSkeleton id from list_skeletons, e.g. pitch
generateImagesbooleanDefault true
personalityIdstringDeprecated spelling of styleId
styleIdstringStyle id from list_styles
titlestring

import_deck Import a deck file

Import a .pptx file (PowerPoint, or the PPTX export of Google Slides / Canva / Keynote) as a fully editable Lorem deck — every text run, color, image, table, chart and note mapped onto the native document model. Also extracts the file's visual style as a reusable Style (see list_styles), first-class next to the curated ones. Anything the model can't express is listed in the fidelity report. After importing, iterate with read_deck / replace_slide / apply_deck as with any deck.

ParameterTypeDescription
path *stringAbsolute path to the .pptx file on this machine
namestringDeck title override (defaults to the file's)

import_design_system Import a design system

Import design tokens (W3C design-tokens JSON, Tokens Studio JSON, or CSS custom properties) — or any .pptx to mine its style — into a reusable Style: palette, fonts, type scale and radii become a Style that drives deck generation and restyling exactly like the curated ones.

ParameterTypeDescription
path *stringAbsolute path to the tokens .json / .css file (or a .pptx to style-mine)
namestringName for the imported style

import_brand_from_url Extract a brand from a website

Fetch a public website, classify its CSS colors and fonts into a Lorem palette, and save the result as a reusable Style — the fastest way to make decks match a company's brand. Returns the styleId plus the extracted palette/fonts; use it with create_deck_from_style({skeletonId, styleId}) or apply the palette to an existing deck via apply_deck.

ParameterTypeDescription
url *stringPublic website URL, e.g. stripe.com
namestringName for the saved style (defaults to '<host> brand')

create_style Invent a Style

Invent a NEW Style from a description — the catalog is not a fixed list of 19. Describe the look in words ("a cozy library", "1970s NASA telemetry", "a risograph zine") and get back a complete Style: palette, font pairing, shape language, decor, atmosphere, motion character, slide transitions, AND the policy axes that lean which composition, entrance and pose each slide draws — so an invented Style behaves differently, not just looks different. Say who the deck is for (persona) and what job it is doing (useCase) and both the look and those leanings follow the brief: a reference card comes…

ParameterTypeDescription
description *stringThe look, in words — e.g. "sun-bleached surf shop, hand-painted signage"
namestringName for the saved Style (defaults to the invented one)
personastringWho is speaking to whom
registerstringThe deck's voice, one short phrase
savebooleanSave it to the Styles list (default true). false previews without keeping it.
topicstringThe deck's subject matter, for context only
useCasestringThe job this deck is doing — decides how far the Style may reach

list_styles List Styles

Every Style available to this user, grouped by where it came from: 19 curated Styles, plus any generated from a described vibe or imported from a .pptx, design system or website brand. A Style is a complete look — palette, fonts, spacing, shape language, decor, ambient atmosphere, motion character, slide transitions — that cascades from one pick. Cross one with a skeleton from list_skeletons and pass both to create_deck_from_style.

language_reference Deck language reference

The full syntax of Lore, the Lorem deck language, generated from the layout schemas so it is never out of date. Read this once before writing anything non-trivial.

validate Check Lore without applying it

Parse a document or fragment and report errors and warnings. Nothing is changed.

ParameterTypeDescription
dsl *string
deckIdstringValidate against this deck's theme

generate_image Generate an image

Create an image from a text prompt and return its asset id, for use as `image: asset:<id>` in a slot or `image asset:<id>` as an element. Requires the server to have an image model key configured.

ParameterTypeDescription
prompt *string

list_fonts Browse the font catalog

Search the ~140-family font catalog by mood, theme or name — e.g. "horror", "kids playful", "elegant serif", "pixel arcade", "western". Every family is Google-hosted and loads automatically when referenced by name in a deck theme (`fonts:` frontmatter) or on a text run (`font="…"`). Use it to pick type that matches the content instead of defaulting to a generic sans.

ParameterTypeDescription
querystringMood/theme/name keywords; omit to list the whole catalog grouped by category

generate_deck_images Generate all declared images in a deck

Fill in every AI-declared image in a deck at once. In the deck language, `image gen {prompt="misty harbor at dawn" x=… y=… w=… h=…}` places an image that renders as a placeholder until generated; this tool generates each one (honoring the theme's imageStyle) and wires the assets in. Run it after create_deck/apply_deck when the document declared `image gen` elements. Requires the server to have an image model key configured.

ParameterTypeDescription
deckId *string

generate_outline Plan a deck outline with the AI pipeline

Stage 1 of the same generation pipeline the app's wizard uses: an art-direction pass plans the argument and look, then a writer produces one validated outline slide per archetype. Returns the outline slides and the design brief as JSON — pass both to generate_deck unchanged to build the deck. Prefer this over hand-writing an outline when the user gives a topic rather than finished content.

ParameterTypeDescription
prompt *stringWhat the deck is about — topic, audience, goal
directionstringFree-form creative direction
slideCountinteger
sourceTextstringSource material to outline from
styleIdstring
tonestring

generate_deck Build a deck end-to-end with the AI pipeline

Stage 2 of the app's generation pipeline: assembles an approved outline into a saved deck — designed layouts, copy, AI/stock imagery, then the quality loop (a vision judge scores the rendered deck and the worst slides get a polish pass) before saving. This is the full in-app experience over MCP: use generate_outline first, then this. Returns the new deckId plus the quality report (initial → final score, revised slides). Style precedence: styleId > personalityId > templateId.

ParameterTypeDescription
outline *arrayOutline slides from generate_outline, unchanged
briefobjectThe design brief from generate_outline, echoed back unchanged
generateImagesboolean
imageStylestring
personalityIdstring
promptstringThe user's original ask, for the generation record
styleIdstring
templateIdstring
titlestring

edit_deck Edit a deck with the in-app AI edit loop

Run the same agentic "Edit with AI" loop the editor's panel uses: it reads the deck, can look at rendered slides (a vision pass), generate or edit images, add archetype slides, and emits operations — which this tool then applies through the live collaboration room, so open browsers update instantly and the whole edit is one undo. Use it for design-quality passes ("review every slide and fix what looks off"), content rewrites, or anything you'd type into the app's AI panel. Prefer replace_slide/apply_deck when you already know the exact change.

ParameterTypeDescription
deckId *string
instruction *string
focusSlideIdsarrayPin these slides as context
focusThemebooleanPin the theme as context
slideIdstringThe slide the edit is 'on' (defaults to the first slide)

set_deck_music Set or clear the deck soundtrack

Give a deck an AI-generated soundtrack that plays during Present mode. Generates audio from a musical brief — mode "instrumental" for pure music, "lyrical" to steer toward sung vocals about `lyrics` — then attaches it to the deck as one undoable operation (also expressible in the deck language as `music:` frontmatter). Generation runs roughly in real time, so expect ~30s. Pass remove:true to clear the soundtrack instead.

ParameterTypeDescription
deckId *string
lyricsstring
modestring
promptstring
removeboolean

save_as_template Save a deck as a template

Promote a deck to the template gallery, so new decks can start from its design and structure. Use once a deck is worth reusing.

ParameterTypeDescription
deckId *string
name *string

delete_deck Delete a deck

Permanently remove a deck. There is no undo.

ParameterTypeDescription
deckId *string

export_deck Export a deck

Get a download URL for the deck as native PowerPoint or PDF. PowerPoint exports as real editable shapes, text and charts — not pictures of slides.

ParameterTypeDescription
deckId *string
formatstring

get_generation_insights Generation insights

How past AI generations were received: win-rates per style, archetype and choreography pattern, feedback-tag frequencies and trend, and the human and AI quality passes reported side by side (never averaged — they measure different things). Use this to decide what to change about generation, and to see which recurring complaints might deserve a curated prompt adjustment.

ParameterTypeDescription
limitintegerGenerations to scan, newest first (default 50)
sincestringISO datetime lower bound, e.g. 2026-07-01T00:00:00Z
untilstringISO datetime upper bound