get_color_stats
Analyzes colors used in an Aseprite frame and their frequency, helping you detect palette drift and reduce 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 |
|---|---|---|---|
| top | No | ||
| filename | Yes | ||
| frame_index | No |