Skip to main content
Glama

Kalpana Designer

Animate layers

animate

Add motion to layers: presets (fade_in, slide_in_up, pop_in, spring_in, bounce_in, tilt_in, blur_in, wipe_in_right, draw_on, pulse, float, spin, shake, drift, count_up, count_down, orbit, ring_spin, peel, decoration_on and the outs) placed at a start time, raw keyframes per property (with springs), word or letter text reveals (typewriter, scramble), shape morphs between a vector layer's shapes, and stagger to cascade a motion over a layer's children. Motion adds to what a layer has unless replace is set; the timeline grows to fit. Returns the timeline. Saved as a new revision that undo reverts; if any part is refused, nothing changes. Use it to add or replace motion; to tune one keyframe use edit_keyframes, to remove motion clear_animation, and check the result with render_contact_sheet. Guide topic: motion. A template with motion can still fill batches as images. Each image shows one moment of the motion. The default moment is the last frame. An outro or a loop can make the last frame a bad image. Find the moment where all the content shows (render_contact_sheet, render_timeline), ask the user if you are not sure, and set that second with set_timeline still_time.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "page_id": "<page_id>",
      "animations": "<animations>",
      "intent": "<intent>"
    },
    "name": "animate"
  }
}

Input Schema

NameRequiredDescriptionDefault
intentYesOne short sentence: what you change and why. Kept in the design history.
page_idYesThe page to work on, as returned by create_design.
animationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / $defs / AnimationSpec / properties / tracks / description
      Previous value: -"Keyframes per property. They replace that property's keyframes. Units, and the value at rest: - translation_x, translation_y (also x, y): px from the layer's place (rest 0). translation_z: px toward the viewer (rest 0). - scale_x, scale_y: factor about the centre (rest 1; 1.1 = 110%). - resize_x, resize_y: factor; rebuilds the box, so radii and strokes keep their size (rest 1). - rotation: degrees, clockwise (rest 0). skew_x: degrees (rest 0). - rotation_x, rotation_y: degrees of 3D tilt about the centre (rest 0). rotation_x > 0 tips the top edge away. rotation_y > 0 turns the right edge away. - opacity: 0 to 1 (rest 1). blur: px (rest 0). - clip_left, clip_top, clip_right, clip_bottom: edges of the visible part, 0 to 1 of the layer's box (rest 0, 0, 1, 1). clip_right 0 -> 1 shows the layer from its left edge. The cut is hard and also cuts children. - path_trim_start, path_trim_end: 0 to 1 of the outline drawn (rest 0 and 1). - corner_radius, stroke_width: px (rest: the layer's own). - peel: 0 to 1, lifts the layer like a sticker (rest 0). peel_angle: degrees, where the peel starts (0 right edge, 90 bottom, 45 bottom-right). - shadow: factor on the drop shadows (rest 1; 0 = flat). - counter: the number shown in a text layer (replaces the first number in the text; format with `counter_format`). - text_path_offset: laps along a text path (rest 0). text_ring_turn: degrees a text ring turns. - motion_progress: 0 to 1 along `path`. - shape: index into `shapes` (1.5 = halfway from shapes[1] to shapes[2]). - fill_color, stroke_color: keyframes take `color` (hex) instead of `value`; the solid fill (text colour on text) or solid stroke."New value: +"Keyframes per property. They replace its keys in their time range. Units, and the value at rest: - translation_x, translation_y (also x, y): px from the layer's place (rest 0). translation_z: px toward the viewer (rest 0). - scale_x, scale_y: factor about the centre (rest 1; 1.1 = 110%). - resize_x, resize_y: factor; rebuilds the box, so radii and strokes keep their size (rest 1). - rotation: degrees, clockwise (rest 0). skew_x: degrees (rest 0). - rotation_x, rotation_y: degrees of 3D tilt about the centre (rest 0). rotation_x > 0 tips the top edge away. rotation_y > 0 turns the right edge away. - opacity: 0 to 1 (rest 1). blur: px (rest 0). - clip_left, clip_top, clip_right, clip_bottom: edges of the visible part, 0 to 1 of the layer's box (rest 0, 0, 1, 1). clip_right 0 -> 1 shows the layer from its left edge. The cut is hard and also cuts children. - path_trim_start, path_trim_end: 0 to 1 of the outline drawn (rest 0 and 1). - corner_radius, stroke_width: px (rest: the layer's own); on text, outline rings scale with stroke_width. - peel: 0 to 1, lifts the layer like a sticker (rest 0). peel_angle: degrees, where the peel starts (0 right edge, 90 bottom, 45 bottom-right). - shadow: factor on the drop shadows (rest 1; 0 = flat). - counter: the number shown in a text layer (replaces the first number in the text; format with `counter_format`). - text_path_offset: laps along a text path (rest 0). text_ring_turn: degrees a text ring turns. - decoration_progress: 0 to 1 of the text's underline and strikethrough drawn, in reading order (rest 1). - motion_progress: 0 to 1 along `path`. - shape: index into `shapes` (1.5 = halfway from shapes[1] to shapes[2]). - fill_color, stroke_color: keyframes take `color` (hex) instead of `value`; the solid fill (text colour on text) or solid stroke."
    • changedInput schema / $defs / Preset / description
      Previous value: -"slide_in_up: Rise into place from `amount` px below.; slide_in_down: Moves down into place. Starts `amount` px above.; slide_in_left: Moves left into place. Starts `amount` px to the right.; slide_in_right: Moves right into place. Starts `amount` px to the left.; scale_in: Grow from scale `amount` (0.85), fading in.; pop_in: Scale up with a small overshoot while fading in.; blur_in: Sharpen from `amount` px of blur while fading in.; draw_on: Draw the outline (strokes, lines, vectors).; wipe_in_right: Reveal from the left edge towards the right.; wipe_in_left: Reveal from the right edge towards the left.; wipe_in_up: Reveal from the bottom edge upwards.; wipe_in_down: Reveal from the top edge downwards.; pulse: Grow to `amount` (1.08) and back.; float: Rise `amount` px (12) and back.; spin: Turn `amount` degrees (360).; count_up: Text: count up from 0 to `amount` (default the text's number).; count_down: Text: count down from `amount` to 0.; spring_in: Spring up from scale `amount` (0.4), fading in.; bounce_in: Fall `amount` px (300) and bounce to rest.; shake: Fast jitter of `amount` px (10) for the duration.; tilt_in: 3D card swing up from `amount` degrees back (55).; drift: Slow wander of `amount` px (16) for the duration.; orbit: Text on a path: slide `amount` laps (1).; ring_spin: Text ring: turn `amount` degrees (360).; peel: Sticker peel from the bottom-right, `amount` of the way (0.3)."New value: +"slide_in_up: Rise into place from `amount` px below.; slide_in_down: Moves down into place. Starts `amount` px above.; slide_in_left: Moves left into place. Starts `amount` px to the right.; slide_in_right: Moves right into place. Starts `amount` px to the left.; scale_in: Grow from scale `amount` (0.85), fading in.; pop_in: Scale up with a small overshoot while fading in.; blur_in: Sharpen from `amount` px of blur while fading in.; draw_on: Draw the outline (strokes, lines, vectors).; wipe_in_right: Reveal from the left edge towards the right.; wipe_in_left: Reveal from the right edge towards the left.; wipe_in_up: Reveal from the bottom edge upwards.; wipe_in_down: Reveal from the top edge downwards.; pulse: Grow to `amount` (1.08) and back.; float: Rise `amount` px (12) and back.; spin: Turn `amount` degrees (360).; count_up: Text: count up from 0 to `amount` (default the text's number).; count_down: Text: count down from `amount` to 0.; spring_in: Spring up from scale `amount` (0.4), fading in.; bounce_in: Fall `amount` px (300) and bounce to rest.; shake: Fast jitter of `amount` px (10) for the duration.; tilt_in: 3D card swing up from `amount` degrees back (55).; drift: Slow wander of `amount` px (16) for the duration.; orbit: Text on a path: slide `amount` laps (1).; ring_spin: Text ring: turn `amount` degrees (360).; peel: Sticker peel from the bottom-right, `amount` of the way (0.3).; decoration_on: Text: draw its underline or strikethrough on, in reading order."
    • changedInput schema / $defs / Preset / enum
      Previous value: -[
      -  "fade_in",
      -  "fade_out",
      -  "slide_out_up",
      -  "slide_out_down",
      -  "slide_out_left",
      -  "slide_out_right",
      -  "scale_out",
      -  "blur_out",
      -  "slide_in_up",
      -  "slide_in_down",
      -  "slide_in_left",
      -  "slide_in_right",
      -  "scale_in",
      -  "pop_in",
      -  "blur_in",
      -  "draw_on",
      -  "wipe_in_right",
      -  "wipe_in_left",
      -  "wipe_in_up",
      -  "wipe_in_down",
      -  "pulse",
      -  "float",
      -  "spin",
      -  "count_up",
      -  "count_down",
      -  "spring_in",
      -  "bounce_in",
      -  "shake",
      -  "tilt_in",
      -  "drift",
      -  "orbit",
      -  "ring_spin",
      -  "peel"
      -]New value: +[
      +  "fade_in",
      +  "fade_out",
      +  "slide_out_up",
      +  "slide_out_down",
      +  "slide_out_left",
      +  "slide_out_right",
      +  "scale_out",
      +  "blur_out",
      +  "slide_in_up",
      +  "slide_in_down",
      +  "slide_in_left",
      +  "slide_in_right",
      +  "scale_in",
      +  "pop_in",
      +  "blur_in",
      +  "draw_on",
      +  "wipe_in_right",
      +  "wipe_in_left",
      +  "wipe_in_up",
      +  "wipe_in_down",
      +  "pulse",
      +  "float",
      +  "spin",
      +  "count_up",
      +  "count_down",
      +  "spring_in",
      +  "bounce_in",
      +  "shake",
      +  "tilt_in",
      +  "drift",
      +  "orbit",
      +  "ring_spin",
      +  "peel",
      +  "decoration_on"
      +]
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, it discloses that motion is additive unless replace is set, that the timeline grows to fit, that it returns the timeline, that changes are saved as a new revision undo can revert, and that refusal is atomic. These details materially affect how an agent should invoke and reason about the tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but mostly front-loaded around capabilities, behavior, and alternatives. The template-image guidance is useful but could be tightened; overall it remains readable and each section contributes to correct use.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex motion-authoring tool with no output schema, the description covers the major capabilities, mutation semantics, atomic failure behavior, return value, and sibling alternatives. The nested schema carries the remaining parameter detail, so an agent has enough to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the nested schema already describes most parameters in detail. The description summarizes major capability categories such as presets, keyframes, text reveals, and stagger, but adds little parameter-specific meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: adding motion to layers. It enumerates the supported motion types (presets, raw keyframes, text reveals, shape morphs, stagger) and clearly distinguishes the tool from edit_keyframes and clear_animation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly says to use this tool to add or replace motion, and names alternatives for adjacent tasks: edit_keyframes to tune one keyframe, clear_animation to remove motion, and render_contact_sheet to check results. It also gives context-specific guidance for templates with motion and choosing a still time.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources