# MCP tools

`@recit/mcp` registers 31 tools. This list is read from the server each time it changes, so it never
drifts from what an agent sees. The server never calls a model and never generates an image: the
host does, and drives these tools.

Run it with `npx @recit/mcp` in any MCP host; the setup is on
[docs.recit.dev](https://docs.recit.dev/documentation/ai/mcp).

| Tool                    | What it does                                                                                                                                                                                                                                                                                                                                      |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `validate_film`         | Validate a film against the Récit motion schema.                                                                                                                                                                                                                                                                                                  |
| `list_blocks`           | List the block types available to compose scenes from, with their prop names.                                                                                                                                                                                                                                                                     |
| `describe_block`        | The exact props of one block — name, type, required, description — from the schema.                                                                                                                                                                                                                                                               |
| `describe_ui_nodes`     | The ui-scene node vocabulary — containers, leaves, states, and rules.                                                                                                                                                                                                                                                                             |
| `describe_format`       | How to write a story in a Récit format: its Markdown syntax and the JSON Schema of its typed JSON twin.                                                                                                                                                                                                                                           |
| `validate_story`        | Validate a Récit story that is not a motion film (deck, docs, roadmap, webtoon, calendar…): its schema and the rules of its format, each diagnostic with the line of its scene (Markdown) or its JSON pointer (twin, companion).                                                                                                                  |
| `lookup_term`           | Read-only: the short and long definition of a term of a glossary story (`format: glossary`), by its `id` or by a text that is its name or an alias.                                                                                                                                                                                               |
| `search_directory`      | Read-only: the entries of a directory story (`format: directory`) that match a text and the filters given (category, tag, city, country).                                                                                                                                                                                                         |
| `list_themes`           | List installed themes.                                                                                                                                                                                                                                                                                                                            |
| `list_templates`        | List first-party templates.                                                                                                                                                                                                                                                                                                                       |
| `list_icons`            | List the icon names an `icon` node may use (the allowlist).                                                                                                                                                                                                                                                                                       |
| `theme_import`          | Turn a brand into a full, valid theme.                                                                                                                                                                                                                                                                                                            |
| `propose_scenes`        | Propose scene ops from an intent.                                                                                                                                                                                                                                                                                                                 |
| `build_film`            | Turn a source into a validated film.                                                                                                                                                                                                                                                                                                              |
| `apply_ops`             | Apply scene ops to a film file on disk and write it back.                                                                                                                                                                                                                                                                                         |
| `extract`               | Extract a film from a file: `rollup` (vite/rollup bundle stats → real sizes) or `handover` (a lenient handover JSON → validated film).                                                                                                                                                                                                            |
| `render`                | Render a film file (.json film or .md story) to a local MP4, drawn in Chromium (Playwright) and encoded by the system ffmpeg.                                                                                                                                                                                                                     |
| `describe_bible_schema` | The bible of a story world (kind: bible): entry types, trait keys per type, reference roles, character model closed lists, the scene attributes a story uses, and the JSON Schema.                                                                                                                                                                |
| `validate_bible`        | Validate a bible with the rules of `recit validate`: pass exactly one of `markdown` (cast.md text), `bible` (the JSON object) or `biblePath` (.md or .json under the root).                                                                                                                                                                       |
| `build_bible`           | Turn a lenient handover into a validated bible (cast.md).                                                                                                                                                                                                                                                                                         |
| `build_prompt`          | The text of an image prompt, derived word for word from the bible by a deterministic template, with the reference images to attach and its fingerprint.                                                                                                                                                                                           |
| `list_prompts`          | The image prompts of a bible, or of the bibles of a story with `cast:` (`path` under the root), each with its status: `present` (a registered image), `stale` (the prompt changed since) or `missing` (no image yet).                                                                                                                             |
| `register_asset`        | Register an image generated outside Récit: writes `<image>.json`, its provenance (kind: asset), with the fingerprint of its prompt so a later change of the bible shows it as stale.                                                                                                                                                              |
| `story_from_beats`      | The Markdown skeleton of a story from a beat template of the bible: one scene per beat, empty, with the beat as notes.                                                                                                                                                                                                                            |
| `check_continuity`      | Check the continuity of a story world with the rules of `recit validate`: debts paid before planted or left open, unknown episodes, dead characters on stage, webtoon pacing (bubbles per panel, words per bubble), and with `stage` the creative gates of the atelier.                                                                           |
| `render_character`      | Render a pose (or an animation frame at `timeMs`) of a described character from a bible or a `*.character.json` as standalone SVG text, so an agent can inspect what it wrote.                                                                                                                                                                    |
| `expand_animation`      | Expand an animation of a described character into its frame-by-frame postures as JSON (`frame`, `timeMs`, active `pose` and `expression`, whether it is a `key` or `between` two keys, and `posture`), at the animation's `fps`.                                                                                                                  |
| `build_frame_prompts`   | Build the frame-by-frame image prompts of an animated `entry=prompt` (`animation=`) from a bible as JSON, without writing any file.                                                                                                                                                                                                               |
| `expand_events`         | The occurrences of a Récit calendar (`format: calendar`) between two days, in a time zone: each event's start and end as ISO 8601 with the zone's offset (civil dates for an all-day event), recurrences, exceptions and changes of offset applied exactly as the build does.                                                                     |
| `book_outline`          | The outline of a Récit book (`format: book`) from its entry `book.md` (or its JSON twin) under the root: each chapter with its id, number, file and the ids of its sections, the figures (id, number, caption), the notes, the index terms, and the errors of the book (broken :ref, duplicate ids, missing images, each with its file and line). |
| `describe_data`         | Read-only: one data source of a Récit story (the `data:` of a report, or of a deck that holds a chart): its columns with their inferred types (number, string, date), its row count and three rows, read exactly as the build reads them.                                                                                                         |
