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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>"
},
"name": "get_color_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| filename | Yes | ||
| frame_index | No |