lint_sprite
Detect stray, detached, and orphan pixels in Aseprite sprites with exact coordinates. It flags easy-to-miss pixel art errors on a layer or frame so you can fix them before export.
Instructions
Find mistakes that are easy to miss by eye, with exact coordinates.
Reports:
detached: groups of pixels not connected to the main shape (diagonals count as connected), e.g. a mug handle or leaf floating off its object
lone_pixels: single opaque pixels with no opaque neighbour at all
orphan_pixels: pixels whose colour matches none of their 8 neighbours, the usual stray pixel in a fill or shading band (a deliberate 1 px detail such as an eye glint also shows up here: check, don't blindly fix)
Run it on one layer for objects drawn on their own layer; on a full scene everything touches the background, so only orphans are useful.
Args: filename: Aseprite file to check frame_index: Frame to check, starting at 1 (default 1) layer_name: Check only this layer (or group); "" checks all visible layers
Returns: JSON with counts and up to 50 entries per list, smallest pieces first.
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": "lint_sprite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | No | ||
| frame_index | No |