Skip to main content
Glama

Edit an animation

edit_animation

Modify an existing animation file and save a copy: change stage size, frame rate, background, add, delete, rename, hide or show layers, and run engine commands. The original file stays unchanged.

Instructions

Change an existing animation (.anicraft, or Animate .fla / .xfl) and save a copy: stage size, frame rate and colour, add layers (shapes and keyframes as in create_animation), delete, rename, hide or show layers, or run engine commands. The input file is never changed; the result goes next to it (suffix _edited) or to output_dir / output_path.

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": {
      "input_path": "<input_path>"
    },
    "name": "edit_animation"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast frame to export.
fromNoFirst frame to export (0-based; default the first).
frameNopng / svg: the frame to export (default 0).
scaleNoSize of GIF / video / pictures relative to the stage (default 1).
stageNo
suffixNo_edited
formatsNo
commandsNoEngine commands run last (see list_anicraft_catalog).
overwriteNoReplace existing outputs.
add_layersNo
input_pathYes
output_dirNoAbsolute output folder (default: next to the input; required for new files).
hide_layersNo
output_pathNoAbsolute output file for the first format (its extension must match).
show_layersNo
delete_layersNoLayer names.
rename_layersNo{"old name": "new name"}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the generic profile (not read-only, not destructive, not idempotent), so the description carries real weight — and it does, stating that the input file is never changed and that output is written beside it with a _edited suffix or to output_dir/output_path. This makes the destructive-sounding "delete layers" operation legible as a copy-based edit. It does not disclose whether an Animate/engine backend must be available for .fla/.xfl, which is a notable omission.

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?

Two sentences, front-loaded with the verb and operation list, then the output-location contract. The middle clause is a dense enumeration but each item maps to a real parameter group, so little is wasted.

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

Completeness3/5

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

For a 17-parameter, heavily nested tool with no output schema, the definition covers the editing side well but leaves the export side (formats, frame range, scale, overwrite) and any backend/precondition requirements unexplained. An agent would discover the silent default gif rendering only from the schema, not the description.

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?

The description adds meaning for the mutation-oriented parameters (stage size/fps/colour, layer add/delete/rename/hide/show, commands, suffix, output paths). However, it never mentions that the tool also renders to formats such as gif/mp4/svg/png_sequence or what from/to/frame/scale do, despite formats defaulting to ["anicraft","gif"] — a surprising behavior left entirely to the 59%-covered 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?

States a specific verb and resource ("Change an existing animation") and immediately enumerates the supported file types (.anicraft, .fla, .xfl) and the operations (stage/fps/colour, add/delete/rename/hide/show layers, engine commands). It also distinguishes itself from create_animation by referencing it for layer/keyframe syntax, so an agent can tell the two apart without opening the schema.

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

Usage Guidelines4/5

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

The opening word "existing" plus the cross-reference to create_animation makes the create-vs-edit split clear, and the suffix/output statement tells the agent where results land. It stops short of naming export_animation as the alternative when the real goal is rendering to gif/mp4, so one guideline gap remains.

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