export_gif
Exports a full animation as an animated GIF while honoring frame durations and tag ranges; disable looping for one-shot actions that should play once instead of repeating.
Instructions
Export the full animation as an animated GIF (honours frame durations).
Tag *ranges* are honoured, but a tag's playback direction is not: a GIF is a flat
frame sequence. A ping-pong tag exports forward, and the result says so in
`warnings` rather than letting the caller find out in-engine.
Args:
overwrite: Replace `output` if it already exists (default False = no-clobber).
loop: True (the default) repeats forever, which is what Aseprite writes and what
a cycle wants. False plays the animation once and stops.
`loop=False` is the one a one-shot needs, and there was no way to ask for it. An attack
or a death is not a cycle: built from tags at `repeats=1`, with `validate_loop`
confirming it does not close, it still exported as an endless loop that snapped from
the recovery pose back to the wind-up. Set this and the result reports `loops`.
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": {
"filename": "<filename>",
"output": "<output>"
},
"name": "export_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Default: true. | |
| scale | No | Default: 1. | |
| output | Yes | ||
| filename | Yes | ||
| overwrite | No | Default: false. |