export_slice_metadata
Export Aseprite slices as JSON metadata, automatically detecting type and ID from slice names or user data. Includes bounds, pivot, nine-slice, and raw data.
Instructions
Export every slice as engine-agnostic JSON (aseprite_mcp.slice_metadata.v1).
Each slice becomes ``{name, type, id, bounds, pivot, nine_slice, color, data,
raw_data}``. **Type detection:** a slice's user-data JSON ``type`` wins; otherwise the
name convention ``<type>:<id>`` (recognized types: hitbox, hurtbox, collision, interact,
pivot, origin, attach, spawn, nine_slice — anything else becomes ``"custom"``, never an
error). ``id`` comes from the data ``id`` or the name's ``:<id>`` suffix. ``nine_slice``
(Aseprite's 9-patch center) and ``pivot`` are emitted whenever the slice has them. Slice
user-data that is valid JSON is parsed into ``data``; the raw string is kept in ``raw_data``.
Args:
output: Destination .json path. Defaults to ``<sprite>_slices.json`` beside the sprite.
overwrite: Replace an existing file (default False = no-clobber).
Returns a ``workflow_manifest.v1`` manifest (kind ``engine_metadata``).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| filename | Yes | ||
| overwrite | No |