find_stray_pixels
Detects disconnected non-transparent pixels in a sprite and lists lone pixels and small clusters by frame or layer to help clean up stray specks in pixel art.
Instructions
Find specks: non-transparent pixels cut off from the rest of the art.
Pixels touching on a side or a corner (8 neighbours) belong together. lone_pixels are groups of one pixel, small_clusters groups of two or three, each with its box and pixels. Both lists are in reading order and hold at most 50 entries; the counts give the totals. Without layer the visible composite is checked.
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": {
"path": "<path>"
},
"name": "find_stray_pixels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| frame | No | 1-based frame number | |
| layer | No | Layer name or 'group/child' path for that layer's own pixels; omit for the visible layers composited |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||