export_spritesheet_pro
Export Aseprite frames as a game-ready sprite sheet PNG with padding, edge extrusion to stop texture bleeding, trimming with offsets, power-of-two sizing, and JSON metadata for frames, durations, tags, and pivots.
Instructions
A game-ready sprite sheet: padding and edge extrusion against texture bleeding, optional trimming with offsets, power-of-two size, and JSON metadata (frame rects, durations, tags, pivots) next to the PNG.
Extrusion repeats each frame's border pixels outward into the padding, so engines that filter or round UVs never sample a neighbour frame.
Args: filename: Aseprite file output_png: Sheet PNG path; metadata goes to the same name with .json columns: Frames per row (0 = roughly square) padding: Empty pixels between frames (>= 2*extrude recommended) extrude: Border pixels repeated outward, 0-4 trim: Crop each frame to its drawn pixels (offsets are in the JSON) scale: Integer upscale before packing, 1-8 power_of_two: Round the sheet size up to powers of two frames: "" = all frames by_tag: One row per tag (when the sprite has tags and columns is 0) layer_name: Only this layer or group
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_png": "<output_png>"
},
"name": "export_spritesheet_pro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trim | No | ||
| scale | No | ||
| by_tag | No | ||
| frames | No | ||
| columns | No | ||
| extrude | No | ||
| padding | No | ||
| filename | Yes | ||
| layer_name | No | ||
| output_png | Yes | ||
| power_of_two | No |