Skip to main content
Glama

Animate image

animate_image

Turn a still image into a short video clip. Point at the image with job_id (one this connector made earlier), image_url, or product_url; describe the motion in prompt and optionally pick a cinematic camera move. A mismatched start image is reframed to aspect_ratio first when its size is known and the video model follows the image, using the workspace's image editor for a few extra credits. Video is the expensive path: a clip typically costs 50-150 credits against the workspace's Masonry balance (list_models has exact per-model prices) and takes about 1-5 minutes. Waits for the clip and returns it in the conversation; if it is still rendering when the wait ends, the reply carries a job_id: the job keeps running and check_generation returns its result. Starting the same job again makes and bills a second one. To make the person in the image talk, pass speech_job_id (a generate_audio speech job): the clip is lip-synced to that recording and lasts as long as it. Animating a real person is meant for the user's own image, or someone who has agreed to it. Call list_skills and pass skill_slug when relevant; write prompt from the user's request. Omit model for the workspace's image-to-video default.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "animate_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional image-to-video model key (see list_models, kind=video). Defaults to the workspace's image-to-video model.
cameraNoOptional named cinematic camera move, blended into the prompt. One of: zoom_in, zoom_out, dolly_in, dolly_out, pan_left, pan_right, tilt_up, tilt_down, orbit, crane_up, crane_down, crash_zoom, dolly_zoom, fpv_drone, aerial, handheld, bullet_time, dutch_angle, whip_pan, static.
job_idNojob_id of a previous image generation to animate. Provide this OR image_url.
promptNoOptional description of the motion/action in the clip, e.g. 'leaves rustle, sun flares through the trees'.
silentNoSet true for a clip with no sound of its own, e.g. when a voiceover or music goes on in combine_clips. Models without an audio switch ignore it; combine_clips can mute any clip.
voicesNoOptional voices for the people who speak, up to 3, for models with voice_ids (Kling 4.0): each a Kling voice id or an add_media media_id of a recording of one person speaking 5-30 seconds. A recording is meant to be the user's own voice, or that of someone who has agreed to it. Name them @Voice1, @Voice2 in the prompt, in order.
optionsNoOptional model-specific settings by name, for example resolution set to 1080p. Only settings the chosen model has; a wrong name is refused with the list it accepts.
elementsNoOptional people, characters or products to keep identical through the clip, for models list_models shows with elements (Kling 4.0): each a front photo plus 1-3 other angles. Name them @Element1, @Element2 in the prompt, in order. Omit model and Masonry picks one that takes them.
image_urlNoPublic https URL (or masonry:// reference) of an image to animate. Provide this OR job_id.
charactersNoWorkspace characters the image shows, by name (see list_characters), recorded on the clip so the character library tracks it. The first frame carries their look: make it with generate_image (characters) first. Meant for a character the user named. With skill_slug, a name from that template's cast (read_skill lists it) is added to the workspace on first use, free.
skill_slugNoOptional Masonry skill slug from list_skills. Uses the selected skill for provenance and model routing only; skill text is guidance, and the prompt describes the user's request.
product_urlNoHttps product/page URL. Masonry extracts a real product image from the page and uses it as the first frame. Provide this, job_id, or image_url.
aspect_ratioNoOptional output aspect ratio, e.g. 9:16, 16:9, or WIDTHxHEIGHT where supported. If the video model follows the start image and its known shape differs by more than 5 percent, Masonry first reframes it with an image edit model for a few extra credits, preserving the subject and extending the background. If its size cannot be read, the original image is used. Unsupported dimensions are refused. Omit to follow the model's default.
speech_job_idNoOptional speech to make the person in the image say, with lip-sync: the job_id of a generate_audio speech job, or an add_media media_id of a recording. The clip lasts as long as the speech (at least 5 seconds of it works best) and keeps the image's shape, so leave out duration_seconds, aspect_ratio, last_frame_url and reference_image_urls.
last_frame_urlNoOptional image the clip ends on: a direct https image URL or masonry:// reference (masonry://generations/<job_id> for an image made earlier). Only models with an end-frame control use it (list_models marks them last_frame); any other model refuses the call.
duration_secondsNoOptional clip duration in seconds (model-specific, typically 5 or 10).
reference_image_urlsNoOptional extra photos of a person or product to keep identical, sent with the first frame: direct https image URLs or masonry:// references. Only models that take reference images together with a first frame use them; the model's limit counts the first and last frame. A model that takes references only without a first frame refuses the call: use generate_video for that.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses the cost band (50-150 credits, with list_models for exact prices), the 1-5 minute wait, the fallback where a pending render returns a job_id that keeps running, and that re-starting the same job bills a second one — which is exactly the context backing idempotentHint=false. It also flags the extra-credit reframe path and the consent expectation for animating a real person, and nothing here conflicts with destructiveHint=false.

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?

It is long but front-loaded: purpose first, then inputs, cost/timing, wait behavior, lip-sync, consent, defaults. Nearly every sentence carries operational information, though the aspect_ratio reframing sentence largely restates the schema's own wording, which is avoidable duplication.

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 17-parameter, nested-object tool with no output schema and no annotation coverage of cost or latency, the description supplies exactly what is missing: pricing, runtime, partial-result handling, consent, model routing defaults, and mutual-exclusion rules. An agent has enough to call it correctly and set user expectations.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description earns an upgrade by stating relationships the schema only implies: the three source parameters are alternatives, speech_job_id makes the clip match the audio length and forbids duration_seconds/aspect_ratio/last_frame_url, and voices/elements are referenced as @Voice1/@Element1 in prompt order. The remaining repetition of per-parameter text (notably the aspect_ratio reframe) keeps it from a 5.

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 first sentence gives a specific verb and resource: 'Turn a still image into a short video clip.' It implicitly distinguishes itself from generate_video (text-to-video) and generate_image by naming the start-image inputs, and later states the boundary explicitly when it says a reference-only model 'refuses the call: use generate_video for that.'

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 spells out three alternative ways to supply the start frame (job_id, image_url, product_url), when to add speech_job_id, when to call list_skills and pass skill_slug, when to omit model, and which sibling to use instead (generate_video for reference-only models, check_generation for a still-running job, combine_clips for muting). Exclusions are explicit rather than inferred.

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