Manage entrance animations with the ConvertSite MCP
The ConvertSite MCP gives your connected assistant two ways to work with entrance animations: Read with resource animations lists your app's animation library, and the Animations tool creates, updates, renames, shares, reverts, and deletes animations in that library. Your assistant also reads and writes each component's animation as an <animation> child in page XML through Write, Edit, and Restructure. The same Animations tool is available to the built-in assistant inside the editor, with no MCP connection.
What you need
Reading animations is read-only and works with the read scope the standard MCP connection grants (convert:apps.read). Changing animations needs write access (convert:apps.write) plus an open app session: your assistant calls open_app and passes the session token it gets back to the Animations tool.
New to the connection? See Connect ConvertSite MCP to Claude or Connect ConvertSite MCP to Codex.
Entrance animations do not exist in document apps. The Animations tool rejects them with: This app is a document, and documents can't have animations.
You can also manage animations by hand in the editor's inspector. That workflow is covered in Add entrance animations to components; this article is about driving it through your assistant.
Read the animation library
Call Read with resource animations to see every animation your assistant can attach to components. The response lists the ten built-in presets first, then every animation saved at app or workspace scope.
Each entry returns these fields:
Field | What it contains |
|---|---|
| The library key components link to. |
| The animation's display name. |
| An object of effect values, serialized as strings. |
|
|
|
|
| How many of this app's components are linked to the key, counting components across pages and blocks. |
Effect values
The values object carries these fields:
Field | What it is |
|---|---|
| Opacity, from 0 to 100. |
| Scale, in %. |
| Blur, in px. |
|
|
| Movement distance, for directions |
| Movement distance, for direction |
|
|
| Seconds. |
|
|
| Seconds between words. Valid only with |
Built-in presets
The ten presets ship with every app, with key equal to name:
Key | Name |
|---|---|
| Fade |
| Move up |
| Move down |
| Move left |
| Move right |
| Scale up |
| Pop |
| Zoom out |
| Blur in |
| Text reveal |
Manage the library with the Animations tool
The Animations tool takes an ordered batch of 1 to 20 operations in an operations array; each operation identifies itself with op. The batch is all-or-nothing: if an operation fails, nothing is saved and the error names the failing operation, in the form Nothing was changed. operations[index] (op): .... With an empty batch or more than 20 operations, the error is Send between 1 and 20 operations.
Like every MCP write, an Animations call takes the session's write slot and is applied one call at a time.
Operation | Required inputs | Optional inputs | What it does |
|---|---|---|---|
|
|
| Adds a new animation. With |
|
| Applies the given effect values to the definition. Updating a built-in preset creates an app-specific copy of it rather than changing the preset. | |
|
| Renames the animation. Names are 1 to 200 characters after trimming. | |
|
|
| |
|
| Restores a modified built-in preset to its original values. Custom animations cannot be reverted. | |
|
| Removes an animation from the library. |
Rules for values
values accepts the 14 effect fields listed above, as numbers or text; enums are text. Numeric values must be finite and non-negative, except offset_x and offset_y, which can be negative, and opacity values are capped at 100. Trigger settings such as location and delay are per-component settings, not library values.
Names are 1 to 200 characters after trimming, the same limit create and rename enforce in the editor.
How linked components follow the library
Components link to a library animation by key. update and revert update every component linked to that key while keeping each component's own overrides, so a component that locally overrides the duration keeps its override. delete detaches the linked components: they keep their current effect but no longer have a library key. The response reports a components_updated count of the components this touched.
Rules for sharing and deleting
Built-ins cannot be shared.
Sharing is refused when a shared animation with that key already exists. Unsharing does not run that check.
Only a custom animation belonging to this app can be deleted; built-ins and workspace-shared animations are refused. To delete a shared animation, unshare it first.
Animations errors
Error message | Cause |
|---|---|
| The batch was empty or held more than 20 operations. |
| The operation named a key that does not exist. Call |
| The app is a document, which cannot have entrance animations. |
Entrance animations in page XML
A component's animation is an <animation> child, written as the component's first child. A component has at most one. The attributes are key to link the component to a library animation, the 14 effect fields as per-component effect overrides, and the trigger attributes location, view_offset, delay, replay_scroll_up, and sequence.
Linked and detached animations
A linked animation names a library key plus optional overrides. Any effect attribute written beside key overrides that effect for this component only; other components with the same key keep following the library. Overrides are written in pairs: opacity_from with opacity_to, scale_from with scale_to, blur_from with blur_to.
<animation key="slide-up" duration="0.9"/>A detached animation has no key. It carries its own effect values, and defaults can be left out.
<animation opacity_from="20" opacity_to="100" duration="0.4"/>Defaults
When you do not write a value, the animation uses these defaults, so write an attribute only when it differs:
Attribute | Default |
|---|---|
Effects | Fade from 0 to 100% opacity, duration 0.25 seconds, curve |
|
|
| 0 |
| 0 |
| false |
|
|
Where animations are allowed
Animations work on the page root, box, section, columns, column, heading, and text. They are not available in document apps, and not on a component placed directly inside a text-box.
text="words" and word_stagger are valid only on heading and text.
The sequence values depend on the component kind:
Component | Sequence values |
|---|---|
|
|
|
|
All other supported components |
|
What happens on save
When your assistant saves a page with Write, a new page, a block write, or Edit, the written animation must pass the same rules the editor applies: supported component kinds, no documents, no text-box placement, sequence per component kind, and override availability. A key that no longer exists in the library detaches the animation and keeps the component's written values.
Assistant page and block edits keep existing animations when they are not changed. A full Write that omits a component's <animation> removes that component's animation, and deleting the animation child in an Edit does the same. Restructure keeps an animation when the destination component kind supports it, and otherwise lists <animation> among the settings it would drop.
Presets can carry a starter delay that the editor applies when you pick them: Text reveal starts at 1.2 seconds. XML does not infer starter delays from the key, so delay is 0 unless you write it. Include delay="1.2" to match a fresh editor selection of Text reveal.
Example: move your entrance animations over from another website tool
A typical round trip in plain language: "Read my animation library and list every animation with its values." Your assistant calls Read with resource animations and shows you the ten built-ins plus anything you have saved, so you know what already exists and what to add.
Next: "Create an animation called Hero rise that starts from Move up with a slightly longer duration and a bounce curve, and update Move down so it eases in." Your assistant opens the app with open_app, sends one Animations batch with a create and an update, and reports the new key and how many linked components changed. If you want the same motion on other sites in your workspace, it sends the same operations with shared: true.
Finally: "On my landing page, apply Hero rise to every section, stagger the columns left to right, and give the headline a word-by-word reveal with a 1.2 second delay." Your assistant reads the page, adds an <animation> child linked to Hero rise with the trigger attributes to each section, writes sequence="left_to_right" on the columns, and writes text="words" with delay="1.2" on the heading. Ask it to preview the page, then publish when you want the animations live.