Clean sprite sheet
sprite_sheetClean up an AI-made sprite sheet or a set of animation frames: removes the background, finds each frame, makes the character the same height in every frame, lines up the feet and the body, and packs everything into an even grid. Returns the sheet PNG and frame data (cell size, columns, rows, and a TexturePacker-style JSON).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sprite_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pad | No | ||
| cell | No | Square cell size in pixels. Default: fits the biggest frame. | |
| grid | No | If the frames sit in a regular grid, give it as "COLSxROWS", e.g. "4x2". Otherwise each frame is found on its own. | |
| name | No | Short name for the output files. | |
| anchor | No | feet | |
| columns | No | Columns in the output sheet. Default: all frames in one row. | |
| image_url | No | Public http(s) URL of a PNG image, up to about 128×128 pixels. | |
| pixel_art | No | Scale with sharp pixels instead of smooth. | |
| same_height | No | Scale frames so the body is the same height in each. | |
| image_base64 | No | The PNG file as base64 (a data: URL also works). Use instead of image_url. | |
| match_colors | No | Pull the colours of every frame toward the first one. |