pack_sprite_sheet
Pack pixel art document frames into a transparent PNG sprite sheet arranged row by row, with configurable cell dimensions, spacing, and alignment.
Instructions
Pack document frames into a transparent PNG sprite sheet in row-major order and write it to disk. Sprites may have different sizes; cell dimensions default to the largest sprite. This is delivery output and returns no preview image.
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": {
"sprites": "<sprites>"
},
"name": "pack_sprite_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Output path (default: a unique PNG in the exports directory) | |
| align | No | Alignment of smaller sprites within their cells (default top_left) | |
| margin | No | Transparent border around the sheet (default 0) | |
| columns | No | Columns in the sheet (default: roughly square) | |
| spacing | No | Transparent pixels between cells (default 0) | |
| sprites | Yes | ||
| cell_width | No | Cell width (default: widest sprite) | |
| cell_height | No | Cell height (default: tallest sprite) | |
| return_base64 | No | Also return the PNG bytes as base64 text (default false) |