export_godot_spriteframes
Exports an Aseprite sprite as a Godot 4 SpriteFrames .tres resource plus a packed PNG sheet and JSON metadata, creating one animation per tag with per-frame timing from Aseprite durations.
Instructions
Export a sprite as a Godot 4 SpriteFrames resource (.tres) + a packed sheet.
Produces three files: a packed PNG sprite sheet, its JSON frame/tag metadata, and a
``SpriteFrames`` .tres that references the sheet via ``AtlasTexture`` regions, one
Godot animation per Aseprite tag (or a single ``default`` animation if untagged), with
per-frame timing taken from Aseprite frame durations.
Emits ``SpriteFrames`` only (no pivot/origin/hitbox/9-slice). Tag direction determines
frame order; ping-pong visits each endpoint once and reuses frame durations on return.
Finite repeats play once. Counts above one add a warning naming the tag, since Godot
SpriteFrames cannot store repeat counts.
Args:
output: Destination .tres path (workspace-relative).
sheet_output: Sheet PNG path. Defaults to ``<output stem>.png`` beside the .tres.
scale: Integer upscaling factor for the sheet.
texture_res_path: The ``res://`` path of the sheet inside your Godot project (the
AtlasTexture atlas). Defaults to ``res://<sheet filename>`` (same-folder import).
default_loop: ``loop`` flag for untagged sprites and tags without finite repeats
(default True). Finite repeats always disable looping.
overwrite: Replace existing outputs (default False = no-clobber). All three targets
are validated up front, so nothing is written if any already exists.
Returns a ``workflow_manifest.v1`` manifest (kind ``engine_preset``).
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_godot_spriteframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Default: 1. | |
| output | Yes | ||
| filename | Yes | ||
| overwrite | No | Default: false. | |
| default_loop | No | Default: true. | |
| sheet_output | No | ||
| texture_res_path | No |