---
canonical_url: "https://docs.composio.dev/toolkits/lottiefiles_mcp"
markdown_url: "https://docs.composio.dev/toolkits/lottiefiles_mcp.md"
product: "platform"
version: null
last_updated: null
---

# LottieFiles MCP

Build, preview and export Lottie animations with the LottieFiles Creator API, generate or import media, and save files to your LottieFiles workspace through LottieFiles' hosted Creator MCP server.

- **Category:** images & design
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 11
- **Triggers:** 0
- **Slug:** `LOTTIEFILES_MCP`
- **Version:** 20261129_00

## Tools

### Creator account

**Slug:** `LOTTIEFILES_MCP_CREATOR_ACCOUNT`

Which LottieFiles account, workspace and Drafts project saved files go to, and appUrl.

### Creator delete file

**Slug:** `LOTTIEFILES_MCP_CREATOR_DELETE_FILE`

Delete an output or media/<name> file by name. Deleting a file that is still encoding cancels the encode. Pass expectedJobId from a creator_download_file result to delete the file only while that job's export still holds the name, even after it completes. If another export replaced it, the call returns output_changed; check the export again instead of dropping expectedJobId.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | string | Yes | File name passed to creator.render / creator.export, e.g. "hero.mp4". |
| `documentId` | string | No | Document the file belongs to (default "default"). |
| `expectedJobId` | string | No | Delete only while this job's export still holds the name, even after it completes. |

### Creator docs

**Slug:** `LOTTIEFILES_MCP_CREATOR_DOCS`

Creator API reference. `lookup`: signature, units, example and related calls for each named method or enum member (all names in one call, e.g. ["setParentInPlace", "PropertyType.Scale"]). `query`: plain-words search ("fade a shape"). `topic`: a page (overview, shapes, animation, paints, effects, masks, render, slides, video, edit, import) or section of guide, patterns, api (`guide/units`, `api/paints`), up to four comma-separated. About 100 tokens a lookup name, a page a few hundred to 1,500.


#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | No | Free-text search over names, parameters and doc text, e.g. "fade a shape" or "export video". Returns the top 5 matches, any matching how-to answer, and the sections worth reading next. |
| `topic` | string | No | A page (see the tool description), or a section such as guide/units or api/paints; up to 4 comma-separated. Common synonyms (export, colors, deck, mp4, ...) resolve too. |
| `lookup` | string | No | Every method or enum-member name you are about to use, in one call, e.g. ["setParentInPlace", "PropertyType.Scale"]. An invented name that has a real equivalent resolves to it; about 100 tokens per name. |

### Creator document

**Slug:** `LOTTIEFILES_MCP_CREATOR_DOCUMENT`

List durable Creator documents or one document's files; list a document's revisions ("history") or restore one ("restore" with revision); or reset one to an empty revision. Each creator_exec that changes the document saves a numbered revision. Restore saves that revision's content as a new one, so nothing is lost and creator_exec continues from it. Reset removes output files, cancels encodes and needs the caller's confirmation. To undo a change, restore; reset only when the user asks to wipe the scene.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string | Yes |  |
| `revision` | string | No | Action "restore" only: the revision to bring back, e.g. "7". |
| `documentId` | string | No |  |

### Creator download file

**Slug:** `LOTTIEFILES_MCP_CREATOR_DOWNLOAD_FILE`

Fetch, by name, a file a script created with creator.render(file) or creator.export(file, format) inside creator_exec, or a media/<name> file. Ready: returns downloadUrl and downloadExpiresAt (a temporary web link; anyone holding it can read the file until it expires, call again to renew) when this deployment's store can sign one, else only a uri (an MCP resource for resources/read, not a browser URL). Still encoding: {status:"encoding", retryAfterS} — wait that long and call again. Failed: the error message. Treat downloadUrl as a secret bearer link: share it only with the user who asked for the file and do not log or store it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | string | Yes | File name passed to creator.render / creator.export, e.g. "hero.mp4". |
| `documentId` | string | No | Document the file belongs to (default "default"). |

### Creator exec

**Slug:** `LOTTIEFILES_MCP_CREATOR_EXEC`

Runs JavaScript against the persistent Creator API document (code mode): build, inspect, preview and export are all done through this one call. Every successful mutation commits before the tool returns; any thrown error, including a timeout, rolls back the whole script and leaves the document unchanged. Returns the script's return value as `result`, `logs`, a `warnings` array (unit and range lints), the new `revision`, any `outputs` a render or export queued, and attaches PNGs from `renderFilmstrip`/`render` as images. Key parameters: `code` (the script), `documentId` (default "default"), `timeoutMs` (default 5000, max 30000). See the server instructions for units and the invariants, and `creator_docs` (lookup/query/topic) or `creator.help(name)` for anything not covered there.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `code` | string | Yes | JavaScript source; creator, PropertyType, params, ctx, dump, files are in scope. See the server instructions for units and the invariants. |
| `note` | string | No | One line for the document's history; default: the script's leading // comment. |
| `params` | string | No |  |
| `timeoutMs` | string | No | Wall-clock budget in milliseconds (default 5000, max 30000). |
| `documentId` | string | No | Default "default"; use another id for a separate document. |

### Creator generate media

**Slug:** `LOTTIEFILES_MCP_CREATOR_GENERATE_MEDIA`

Generate an image (PNG), an SVG (kind vector), music or speech into the document's media library as media/<name>. It does not change the scene: the result shows the exact creator_exec code that uses the file. image: prompt describes the picture; transparent:true for a subject placed over the scene. vector: prompt draws a flat icon and traces it to SVG, or inputs:["media/<x>.png"] traces an image. music: prompt is mood, genre and instruments; text is lyrics; durationS 5–180. speech: text is the exact words, style the delivery, voice a provider voice. Each call is billed. A result not ready within the server's wait comes back as {status:"generating"}: call creator_download_file(file), which waits for it, until it is ready; do not generate it again. A taken name fails unless replace:true. With replace, the new file overwrites the existing media file of the same name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `kind` | string ("image" | "vector" | "music" | "speech") | Yes | image &#124; vector (SVG) &#124; music &#124; speech. |
| `name` | string | No | File name without path, e.g. "intro"; the extension follows the kind. Default: from the words. |
| `text` | string | No | speech: the exact words to speak (required). music: lyrics; omit for an instrumental. |
| `maxPx` | integer | No | image: longest edge in pixels, 64–2048 (default 1024); a placed image costs width×height×4 bytes. |
| `style` | string | No | Style guidance; speech: the delivery (tone, pace, accent). |
| `voice` | string | No | speech: a provider voice (openai: marin, cedar, coral, sage, …; minimax: English_Graceful_Lady, …). |
| `inputs` | array | No | image: media PNGs to edit or match; vector: the one image to trace. |
| `prompt` | string | No | image, vector, music: what to make. Speech does not use it. |
| `replace` | boolean | No | Regenerate an existing name; the earlier file stays readable until the new one is ready. |
| `provider` | string ("openai" | "google" | "elevenlabs" | "minimax" | "lottiefiles") | No | Omit unless the user names a provider. |
| `durationS` | number | No | music: length in seconds, 5–180 (default 30). |
| `documentId` | string | No | Document the media belongs to (default "default"). |
| `aspectRatio` | string ("1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3") | No | image: the frame shape. |
| `transparent` | boolean | No | image: true for a subject over the scene; false for a full-frame background. |

### Creator import media

**Slug:** `LOTTIEFILES_MCP_CREATOR_IMPORT_MEDIA`

Add a local PNG, SVG, Lottie, .lottie, .riv, audio or font file to the document as media/<name>, without base64. source "upload" returns a URL: PUT the bytes there within 15 minutes, with no credentials. Scripts pass {file: "media/<name>"} to createImageAsset, loadBytes, createAudioAsset or loadFont. The upload URL accepts bytes without credentials: treat it as a secret, use it only for this upload and do not log or share it. With replace, the import overwrites the existing media file of the same name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Such as music or logo.svg; the extension follows contentType. |
| `bytes` | integer | No | upload: the file's exact size. |
| `source` | string | Yes | "upload". |
| `replace` | boolean | No | Replace an existing name. |
| `documentId` | string | No |  |
| `contentType` | string | No | upload: such as image/png, audio/mpeg, font/ttf. |

### Creator load from workspace

**Slug:** `LOTTIEFILES_MCP_CREATOR_LOAD_FROM_WORKSPACE`

Load a LottieFiles workspace file into the document by fileId. mode "replace" discards the document (content, files, output files) and commits the file as its next revision, with no confirmation; mode "add" adds its compositions beside the existing ones. Edit the result with creator_exec; creator_save_to_workspace with the same fileId saves a new version. Files created inside Creator return unsupported_file; also file_not_found, file_too_large, workspace_download_failed (retry).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | Yes | "replace": the document becomes the file. "add": the file's compositions are added beside the existing ones. |
| `fileId` | string | Yes | Workspace file to load, from an earlier save or the user. |
| `documentId` | string | No | Document to load into (default "default"). |

### Creator open in creator

**Slug:** `LOTTIEFILES_MCP_CREATOR_OPEN_IN_CREATOR`

Save the focused composition to the caller's LottieFiles workspace and give the user the returned creatorUrl, which opens it in LottieFiles Creator. The first call on a document creates the file; every later call writes a new version of that same file, so creatorUrl and fileId stay the same (rebound: true when the file was gone and a new one was made). Errors: empty_document, no_focused_composition (creator.focusOn first), payload_too_large.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Title of a file this call creates, 1 to 100 characters (default: the composition's name); a new version keeps the file's title unless given. |
| `documentId` | string | No | Document to open (default "default"). |

### Creator save to workspace

**Slug:** `LOTTIEFILES_MCP_CREATOR_SAVE_TO_WORKSPACE`

Save to the caller's LottieFiles workspace; give the user the returned creatorUrl, which opens the file in LottieFiles Creator. Default: exports the focused composition as a dotLottie; `file` uploads a ready Lottie JSON output file instead. `fileId` saves a new version of that file; omit it for a new file in Drafts. Errors: empty_document, no_focused_composition (creator.focusOn first), unsupported_file, not_found, expired, file_not_found, payload_too_large.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `file` | string | No | A ready Lottie JSON output file (creator.export(file, "lottie")) to upload instead of exporting the document. |
| `name` | string | No | Title, 1-100 characters (default: the file's title with fileId, else the composition's name or output file's stem). |
| `fileId` | string | No | Workspace file to save a new version of; omit for a new file in Drafts. |
| `documentId` | string | No | Document to save (default "default"). |
