generate_animation_set
Generate several animations in one job, one clip per animation, all run in parallel. For several facings of one character (its rotation views) use this, not one animate_sprite call per facing: the set decides room and size once for every facing, so they come out one size. Ways to use it:
A PRESET on one or more sprites: platformer-character (idle, walk, run, jump, attack-1, death, hurt) or a top-down set (topdown-walk/run/dash/attack/idle: 8 directions; topdown-idle-4: the 4 cardinals only). Every sprite gets EVERY action of the preset: topdown-run on one image makes all 8 runs (8 clips), not one. For one clip, pass no preset and type the action (way 3).
A PRESET across an 8-way rotation set: one item per facing, {assetId, frameIndex:, imageIndex:i} where i is the facing's position in the frame's facings list, and every facing gets its own directional clip (walk-left from the left-facing image, …). If the facings list has no 'down' (the sprite was drawn facing the camera), add {assetId, base:true} as 'down'. If it already has 'down' (a side-view sprite), use only the rotation's own images: the base is the side view, not the front. For topdown-idle-4 pick only the 4 cardinals (down, right, up, left). The left, up-left and down-left clips are mirrored from their right-side twins in the same rotation set, for free; set flipFacings false to animate them too.
No preset, a typed action: one clip per image. A list of actions makes one clip per action (up to 6): 'name: description' separated by semicolons names each clip (e.g. 'attack-2: an overhead slash; block: raise the sword to guard'); for one image a plain 'idle, run, jump' also works. Several actions on several images: every image gets every action. Cost: see get_animation_presets for the current price (per clip: 15 credits, 25 for a 1024 HD image, 30 for a looping walk/run on one); the plan below states the exact total. Mirrored clips are free and clips that fail are refunded. Clips that come back to their start (idle, walk, run, attack, jump, hurt, dash) end on their own first frame, so they loop; one-off clips such as a death do not. Clips are added to their source asset as frames named after the action. Price check: without expectedCost this only shows the plan (the clips it would make and the total) and charges nothing; show it to the user, then call again with expectedCost set to that total. A plan that would charge anything else is refused, with nothing charged.
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": {
"items": "<items>"
},
"name": "generate_animation_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room | No | Room for big moves, decided once per sprite for the whole set so it is one size in every clip. auto: if any clip is a big move (kick, special, fall, jump) and the character fills its frame, every clip of that sprite draws it a little smaller. on: always. off: never | auto |
| ways | No | With facings 'rotation': 8 facings (default) or the 4 cardinals | |
| items | Yes | Images to animate, in order | |
| preset | No | Named set of actions (see get_animation_presets) | |
| prompt | No | Without a preset: the actions to make, as 'name: description' separated by semicolons. With one: optional extra direction for every clip | |
| facings | No | 'rotation' with ONE item and a topdown-* preset: run it on that sprite's 8-way rotation (its newest, or the item's frameIndex), one clip per facing with the left side mirrored, as the app's Animation set does with nothing picked. Saves listing every facing as an item (way 2). Without it a top-down preset on one image draws every heading from that one view | |
| autoFlip | No | After the run, mirror every right-side clip on the asset that has no left twin (animate only the right-facing turns, get all eight). Free | |
| slotEnds | No | Optional end frame per item, in items' order: an image key from any of your assets (get_asset lists them) or its cdn.voidless.dev URL, or {frameIndex, imageIndex} / {base: true} on that item's own asset; null = the default ending. The clip ends on that pose | |
| holdFacing | No | End every clip on the frame it started from, even one-off clips such as a death (by default loops end on their start and one-offs don't) | |
| flipFacings | No | On an 8-way rotation set, mirror the left-side clips from the right-side ones instead of animating them (mirrored clips are free). One-sided details swap sides, as on the rotation images | |
| expectedCost | No | The total in credits the user confirmed from the plan. Omit to get the plan first (free) |