get_color_stats
Analyzes a sprite frame to list unique colors and their usage frequencies, helping identify palette discipline issues such as near-duplicate colors.
Instructions
Report the colors used in a frame and how often each appears.
Flattens the sprite (non-destructively) and histograms the frame. Use to check palette discipline: too many near-duplicate colors is a common pixel-art mistake.
Args: filename: Aseprite file to read frame_index: Frame to analyze, starting at 1 (default 1) top: How many of the most-used colors to list (default 16)
Returns: JSON with unique color count, opaque pixel count, and the top colors with usage counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| frame_index | No | ||
| top | No |