get_color_stats
Identify palette issues by analyzing a frame's color usage, counting unique colors, and listing the most-used colors with their frequencies.
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 |
|---|---|---|---|
| top | No | ||
| filename | Yes | ||
| frame_index | No |