asset_sprite_sheet
Combine PNG, WEBP, or JPG frames from a directory into a single sprite sheet with a JSON atlas compatible with TexturePacker, usable in Phaser, PixiJS, Unity, and more. Offline tool, no API key required.
Instructions
Pack a directory of PNG/WEBP/JPG frames into one sprite sheet + TexturePacker-compatible JSON atlas (works in Phaser, PixiJS, Three.js, Godot, Unity via a light importer). MCP equivalent of p2a sprite-sheet <dir>. Offline, no API key.
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": {
"dir": "<dir>"
},
"name": "asset_sprite_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | Directory containing frames. Sorted by natural filename order. | |
| layout | No | grid | |
| columns | No | Columns (grid only). Defaults to ceil(sqrt(n)). | |
| padding | No | ||
| out | No | Output PNG path. Defaults to ./sprites.png. | |
| atlas | No | Output atlas JSON path. Defaults to the sheet path with .json extension. |