split_sprite_sheet
Split a PNG sprite sheet into individual pixel art documents. Handles margins and spacing between cells; skips transparent cells by default.
Instructions
Split a regular PNG sprite sheet into separate pixel-mcp documents in row-major order. Provide exactly one of png_base64 or path. Supports sheet margins and spacing between cells; transparent cells are skipped by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a PNG on the server filesystem (mutually exclusive with png_base64) | |
| rows | No | Rows to read (default: all complete rows that fit) | |
| margin | No | Transparent or decorative border around every edge of the sheet (default 0) | |
| columns | No | Columns to read (default: all complete columns that fit) | |
| spacing | No | Pixels between adjacent cells (default 0) | |
| max_colors | No | Maximum opaque colors in each new document (default 63; larger palettes are quantized per sprite) | |
| png_base64 | No | PNG file content, base64-encoded (mutually exclusive with path) | |
| skip_empty | No | Do not create documents for fully transparent cells (default true) | |
| sprite_width | Yes | ||
| sprite_height | Yes |