Create an animation
create_animationBuild 2D animations from layers of shapes and text, keyframed with eased motion, then export to GIF, MP4, WebM, HTML, Lottie or sprite sheets and receive a preview frame.
Instructions
Make a 2D animation with AniCraft (an Animate-class animation studio): a stage (size, frame rate, colour), layers of shapes (rectangles, ellipses, stars, polygons, lines, SVG paths, text) and keyframes on each layer that move, scale, rotate and fade it with eased tweens. Saves the editable .anicraft and GIF, MP4, WebM, animated PNG / WebP, an HTML page, Lottie JSON, frame pictures, sequences or sprite sheets, and returns a picture of a frame.
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": {
"layers": "<layers>"
},
"name": "create_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last frame to export. | |
| fps | No | ||
| from | No | First frame to export (0-based; default the first). | |
| name | No | File name without extension. | animation |
| frame | No | png / svg: the frame to export (default 0). | |
| scale | No | Size of GIF / video / pictures relative to the stage (default 1). | |
| width | No | ||
| frames | No | Length in frames (default: up to the last key, at least 1 s). | |
| height | No | ||
| layers | Yes | Layers from the bottom up (the first is the background). | |
| formats | No | ||
| overwrite | No | Replace existing outputs. | |
| background | No | Stage colour "#rrggbb". | #FFFFFF |
| output_dir | No | Absolute output folder (default: next to the input; required for new files). | |
| output_path | No | Absolute output file for the first format (its extension must match). | |
| preview_frame | No | Frame to return as a picture (default: the middle). |