1. Conduid
  2. Gaming
  3. Aseprite MCP
MCP server · Gaming

Aseprite MCP

A Model Context Protocol server that drives Aseprite headlessly and measures what it drew: 156 tools to draw, shade and animate pixel art, and results that say what each call did. An agent that cannot see the screen can diff two frames, score palette conformance, and verify a loop. Exports PNG/GIF/sprite sheets, Godot and Minecraft packs.

67Good

Scored 8 hours ago · breakdown

About Aseprite MCP

Aseprite MCP is an MCP server published by MalloyTheDev in the Gaming category: a Model Context Protocol server that drives Aseprite headlessly and measures what it drew: 156 tools to draw, shade and animate pixel art, and results that say what each call did. An agent that cannot see the screen can diff two frames, score palette conformance, and verify a loop. Exports PNG/GIF/sprite sheets, Godot and Minecraft packs. Conduid read 161 tools from its source: add_drop_shadow, add_frame, add_group_layer, add_layer, add_outline, add_palette_color and 155 more. No package is published for it, so it installs from a source checkout.

The repository has 46 stars and 4 forks, is licensed MIT, and its last commit was on 29 Nov 2026. The latest release is v0.10.0 (3 Oct 2026): Five new tools, 147 to 152, and none of them is what this release is about. It follows v0.9.0 (1 Oct 2026), and the 5 most recent releases go back to v0.7.0 (13 Jun 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include animation, aseprite, game-assets, gamedev, godot and headless.

Install

From source
git clone https://github.com/MalloyTheDev/aseprite-mcp

Tools (161)

add_drop_shadowHard drop shadow on a new layer beneath the art.
ParameterTypeDescription
colorstring
filename *string
frameinteger
layer *stringThe layer casting the shadow.
offset_xinteger
offset_yinteger
opacityinteger
add_frameAdd a frame: an empty one goes at the end, a copy goes right after the frame it copies.
ParameterTypeDescription
copy_fromintegerIf given (1-based), the new frame duplicates that frame and is **inserted directly after it**, so every later frame is renumbered: on a red, blue sprite, `copy_from=1` gives red, red, blue, the copy being frame 2 and blue moving from 2 to 3. Copying the last frame moves nothing. Tags follow their frames: one that covered the copied frame grows by one to take in the copy, and one after it moves up by one. Must name an existing frame: an out-of-range number is rejected, not clamped. Without `copy_from` the new frame is empty, goes at the end, and nothing moves.
duration_msintegerThe new frame's duration in milliseconds (default 100). With `copy_from` it is set on the copy; the frame copied keeps its own.
filename *string
add_group_layerAdd a group layer.
ParameterTypeDescription
filename *string
name *string
add_layerAdd a layer (optional group, opacity, blend mode, visibility).
ParameterTypeDescription
blend_modestringnormal, multiply, screen, overlay, darken, lighten, color_dodge, color_burn, hard_light, soft_light, difference, exclusion, hue, saturation, color, luminosity, addition, subtract, divide.
filename *string
groupstringOptional name of an existing group layer to nest the new layer in.
name *stringLayer name.
opacityinteger0-255.
visiblebooleanInitial visibility.
add_outlinePixel outline around art (outside/inside, 4/8-connectivity, thickness). With a light angle the weight tapers across the terminator, 2 then 1 then 0 over a band of edge, instead of switching per pixel and breaking the keyline into scraps.
ParameterTypeDescription
color *stringOutline colour.
connectivityinteger4 (orthogonal only) or 8 (includes diagonals, default).
filename *string
frameinteger
layerstring
light_anglenumberDegrees, 0 from the right and 90 from above, as the shading tools state it. Given, the outline's width varies by which way each edge faces: `thickness` where the form turns away from the light, `lit_thickness` where it faces into it, and **everything between the two across the band of edge in between**.
lit_thicknessintegerWidth on the edges facing the light. 0 drops the outline there entirely. Defaults to one pixel less than `thickness`. A value above `thickness` is allowed and puts the weight on the lit side instead, which is a rim light rather than a weighted outline.
thicknessintegerOutline width in pixels (default 1). With `light_angle`, this is the width on the edges that face away from the light.
wherestring"outside" (grow into transparency, default) or "inside" (recolour the shape's border pixels).
add_palette_colorAppend a colour to the end of the palette.
ParameterTypeDescription
color *string
filename *string
add_reference_layerAdd a dimmed, locked layer holding a reference image to trace over.
ParameterTypeDescription
filename *string
frameinteger
image_file *stringThe reference image/sprite.
layer_namestringName for the new layer (default "reference").
opacityintegerLayer opacity (0-255); dim it so your art stands out.
scale_to_fitbooleanResize the reference to the canvas size (smooth).
xinteger
yinteger
add_sliceCreate a slice (named region) at (x, y, width, height).
ParameterTypeDescription
center_heightinteger
center_widthinteger
center_xinteger
center_yinteger
colorstring
dataany
filename *string
height *integer
name *string
pivot_xinteger
pivot_yinteger
width *integer
x *integer
y *integer
add_tagTag a frame range with a name, direction, colour, and a repeat count (0 means forever, which is how a cycle is marked).
ParameterTypeDescription
colorstringOptional tag colour, shown in the timeline.
directionstring"forward" (default), "reverse", "pingpong", or "pingpong_reverse".
filename *string
from_frame *integer
name *string
repeatsintegerHow many times the tag plays. **0, the default, means forever**, which is how a cycle is marked in the file; 1 is a one-shot such as an attack, a hurt or a death. This is the sprite's own answer to whether these frames loop, and `validate_loop` reads it: a repeated last frame is an error for a cycle and only a warning for a one-shot.
to_frame *integer
add_tileAdd a new tile to the layer's tileset (optionally filled with a solid colour).
ParameterTypeDescription
colorstring
filename *string
frameinteger
layer *string
adjust_brightness_contrastAdjust brightness (-255..255, additive) and contrast (-255..255) of a layer.
ParameterTypeDescription
brightnessinteger
contrastinteger
filename *string
frameinteger
layerstring
adjust_hue_saturationShift hue (degrees) and scale saturation/lightness (percent, -100..100).
ParameterTypeDescription
filename *string
frameinteger
hueinteger
layerstring
lightnessinteger
saturationinteger
apply_color_curveRemap every tone through a curve, all three channels or one. Brightness moves every tone alike and contrast pivots them around the middle; a curve lifts the shadows while the highlights stay put. It cannot add a colour or any transparency, so it is safe on finished art.
ParameterTypeDescription
channelstring"rgb" (default) moves all three together, or "red", "green" or "blue" for one. A grayscale sprite takes "rgb", which moves its single value.
filename *string
frameinteger
layerstringTarget layer (default: the top one). frame: 1-based.
points *arrayThe curve's corners, as `[[input, output], ...]` with every value from 0 to 255 and the inputs climbing. `[[0, 0], [128, 192], [255, 255]]` lifts the midtones and pins the ends; `[[0, 255], [255, 0]]` inverts; a single point flattens every tone to its output. Between corners the curve runs straight, and outside the first and last it holds their values, which is what Aseprite's own Color Curve does (measured, and reproduced here rather than called, so the selection, the pixel counters and indexed palettes all behave as they do for every other pass).
apply_operationsApply many edits to one sprite atomically in a single process (`dry_run` to validate only). See Batch operations.
apply_timing_curveGive a cycle a shape in time (`hold_extremes`, `attack`, `ease_in`, `ease_out`, `flat`), or hold and snap named poses. Sets durations and never duplicates a frame.
ParameterTypeDescription
base_msintegerThe duration of a passing frame. Everything else is a multiple of it.
curvestring`hold_extremes` (the ends of a cycle are held, the passing frames are not), `attack` (anticipation, snap, impact, recovery), `ease_in` (starts slow), `ease_out` (ends slow), or `flat` (every frame the same, to start over).
filename *string
framesarrayThe frames to time, in order. Defaults to a tag's frames, or all of them.
hold_framesarrayFrames to hold whatever the curve says, at three times `base_ms`.
snap_framesarrayFrames to snap through, at the shortest duration that still registers.
tagstringTime one tag's frames instead of naming them.
assess_spriteMeasure the drawing: colours and ramps, noise, jagged diagonals, how much of the canvas is used, centring, symmetry, palette conformance against a declared ramp, and tile seams. Each measurement worth acting on comes back with a line saying why, in `readings` and again split into `defects` and `observations`. `subject` is `"character"` (default) or `"prop"`, which withholds the "masses have fused" reading and the keyline readings, which assume a character.
ParameterTypeDescription
check_cvdbooleanAlso re-measure the drawing through red-green and blue-yellow colour vision deficiency, and report where two colours that are distinct to most viewers collapse into one. Off by default because it is the one measurement here that costs about half again as much as everything else at the size cap.
check_tilingbooleanFor a tile, also measure how much worse the wrapping edge looks than the interior, per axis. Near 1.0 wraps; much above 1.0 has a seam.
filename *string
frameinteger
layerstringMeasure one layer instead of the flattened frame.
ramparrayDeclare the ramp the art should be on and the report adds palette conformance: the fraction of drawn pixels sitting exactly on it. This is the measurement that separates shading from filtering, and it is omitted rather than reported as a meaningless 1.0 when no ramp is given. On an **indexed** sprite the readings also say how much of the ramp the palette can actually hold, because conformance cannot see a ramp step that collapsed onto its neighbour: the colour it collapsed to is still on the ramp, so banded shading still scores 1.0.
standingbooleanSay that the subject is a figure standing on its feet, and the report adds whether its mass sits over them: the signed margin between the mass centroid and the support base. There is no sensible answer for an item, a tile or a scene, so this is asked for rather than guessed.
subjectstring"character" (the default) or "prop". The limb and keyline readings find several masses in a waist, which on a vase, a lantern or a bottle is the object's shape; "prop" drops those readings, so an object is not told to separate limbs it does not have or refused for a keyline between masses it does not have. Everything else is judged the same, off-ramp pixels and canvas-border contact included. Anything else is refused before launch.
build_asset_from_specDescribe an asset once (`aseprite_mcp.asset_spec.v1`), then validate it, dry-run the plan, or build it (structure only, canvas/layers/frames/tags/slices/palette + exports; you draw the art).
ParameterTypeDescription
overwritebooleanPassed to the export steps (replace existing export files). The sprite itself is created no-clobber, so building over an existing ``<name>.aseprite`` raises - build to a new name or remove the old file.
spec *object
cast_shadowA shadow on the ground, away from the light and foreshortened by its height, built of ramp steps and clipped to the surface it falls on.
ParameterTypeDescription
filename *string
frameintegerFrame to build the shadow for, 1-based.
ground_layerstringThe layer holding the surface. When given, the shadow is clipped to that layer's pixels and the call is refused if there is nothing there to catch it. Consulted for its pixels, not for whether the picture shows them: a hidden layer, or one at a low opacity, still holds the pixels the clip asks about, so the shadow is drawn and the result reports what the floor actually is (see below) rather than the call being refused over it.
ground_yintegerThe row the shadow lies on. Defaults to the subject's own contact row, the lowest row it has a pixel on, which is the same measurement `validate_loop` reports as `contact_rows`. Refused if it sits above that row, because a floor running through the subject is not a floor.
layer *stringThe layer casting the shadow. Its cel is never modified. A background layer is refused: it is opaque and covers the canvas, so it has no silhouette to cast. `convert_background_to_layer` first if the subject is one.
light_anglenumberDegrees. 0 is from the right, 90 from above, 135 from the upper left. The shadow falls the opposite way.
light_heightnumberThe light's elevation, above 0 and up to 1. 1.0 is directly overhead and casts no length at all; small values are a low sun and throw a long shadow. This is the control that changes the shadow's length.
new_layerstringName for the shadow's own layer, created directly below `layer`, or reused when a previous call of this tool made it and `frame` has no cel on it yet. That is how one shadow layer carries a whole walk cycle. A second call for the same layer *and* frame is refused, because two effects composited into one cel are a picture neither call describes, and so is a layer of that name this tool did not create.
opacityintegerThe shadow *layer's* opacity, 0 to 255. Left at 255 the shadow's pixels are exactly ramp entries, which is what keeps conformance at 1.0; lowering it blends them with whatever is underneath and takes the composite off the ramp, so prefer a lighter ramp step over a lower opacity.
ramp *arrayColours darkest first, normally the *ground's* ramp rather than the subject's, since the shadow is a darkening of the surface it lies on. Required, and deliberately so: a shadow built out of alpha instead is `add_drop_shadow`, which already exists.
softnessintegerPixels of penumbra around the core, each one ramp step lighter. 0 is a hard-edged shadow, 1 or 2 is the usual soft contact.
clear_layerErase the target layer/frame cel to full transparency.
ParameterTypeDescription
filename *string
frameinteger
layerstring
contact_shadowDarken the pixels where one form meets another, along its ramp.
ParameterTypeDescription
depthintegerHow many ramp steps darker, at the contact line. 1 is the common choice.
directionnumberDegrees, restricting occlusion to one side. Omit for all directions, which is what you want for a contact line; set it when only one side of the form is actually touching something.
filename *string
frameintegerTarget frame, 1-based.
layerstringTarget layer (default: top layer).
occluder_color *stringThe colour of the form casting the occlusion, for example the ground a character stands on, or the blade a crossguard meets.
occluder_tolerancenumberHow close a pixel must be to `occluder_color` to count as the occluder, as a weighted RGB distance. Defaults to `tolerance`, which is what this did before it was a separate argument. It wants to be **tight**: the occluder is a flat fill you named, while `tolerance` has to stay loose enough for shaded art that varies, and one number cannot be both. At the shared default of 24 a ground colour within 24 of the subject's own ramp makes the subject its own occluder: measured on a 24x24 sprite with a subject painted `#5a5a7a` and ground `#60607e`, `occluder_pixels` came back as 312 (the 144 ground pixels plus all 168 of the subject) and nothing was darkened at all. The result carries a warning naming any ramp entry this cannot be told apart from, because that overlap is invisible otherwise.
radiusintegerHow far the darkening reaches from the occluder, in pixels. 1 or 2 is usually right; beyond that it reads as a drop shadow rather than contact.
ramp *arrayColours darkest first. Darkened pixels stay on this ramp.
tolerancenumberHow close a pixel must be to a ramp entry to be darkened. Pixels further away are left alone, so this does not spill onto other materials.
convert_background_to_layerConvert the Background layer back into a normal (transparent-capable) layer.
ParameterTypeDescription
filename *string
convert_layer_to_backgroundConvert a normal layer into the sprite's opaque Background layer.
ParameterTypeDescription
filename *string
layer *string
copy_celCopy a cel's image (and position) from one frame to another on the same layer.
ParameterTypeDescription
filename *string
from_frame *integer
layer *string
to_frame *integer
create_character_spriteTransparent canvas + body/details layers + a generated shading ramp + an outlined placeholder.
ParameterTypeDescription
base_colorstring
heightinteger
name *string
widthinteger
with_placeholderboolean
create_icon_setGrid sheet of icon cells, each a placeholder inside a named slice (`icon_0`, …).
ParameterTypeDescription
columnsinteger
countinteger
icon_sizeinteger
name *string
create_rpg_item_sheetGrid sheet with a named slice per item (sword/shield/potion/…).
ParameterTypeDescription
columnsinteger
item_sizeinteger
itemsarray
name *string
create_spriteCreate & save a new sprite (`rgb`/`indexed`/`gray`, optional background; `indexed` starts with a usable palette).
ParameterTypeDescription
backgroundstring
color_modestring
filename *stringOutput path. Relative paths go in the workspace. Use a .aseprite/.ase extension to keep layers & frames editable.
height *integer
overwriteboolean
width *integer
create_tilemap_layerCreate a tilemap layer with a tile size + empty grid.
ParameterTypeDescription
columnsinteger
filename *string
frameinteger
name *stringLayer name.
rowsinteger
tile_heightinteger
tile_widthinteger
create_tileset_projectCanvas + tilemap layer + a starter tileset (grass/dirt/water/stone, or your own).
ParameterTypeDescription
columnsinteger
name *string
overwriteboolean
rowsinteger
tile_sizeinteger
tilesarray
crop_spriteCrop the canvas to a rectangle.
ParameterTypeDescription
filename *string
height *integer
width *integer
x *integer
y *integer
cycle_paletteAnimate an indexed sprite by rotating a run of palette indices across new frames, the classic palette-cycling effect for water, fire and glows. Aseprite's Lua API exposes no per-frame palette, so the rotation is applied to the pixels' own indices and the result says so (`method: "pixel_remap"`).
ParameterTypeDescription
filename *string
frame_countintegerHow many frames the cycle occupies. Defaults to `len(indices)`, which is one frame per colour, and is capped there: past that the rotation repeats a frame already written, so the extra frames cost storage and show nothing new.
indices *arrayThe palette indices to rotate, **in the order the colours travel**. At least two, distinct, each one in the palette, and none of them an entry that cannot draw (the sprite's transparent index, or an entry whose alpha is 0): rotating one of those through the cycle would make drawn pixels vanish. `list_palette_usage` reports the contiguous runs worth passing here.
layerstringCycle only this layer's pixels. Default: every pixel layer.
stepintegerHow far the colours travel per frame. Positive moves them forward along `indices`; negative moves them back. A multiple of `len(indices)` is refused rather than silently producing identical frames.
delete_celDelete a cel (the layer becomes empty at that frame).
ParameterTypeDescription
filename *string
frame *integer
layer *string
desaturateDesaturate toward grayscale by `amount` percent (0-100).
ParameterTypeDescription
amountinteger
filename *string
frameinteger
layerstring
deselectClear the selection, so edits affect the whole layer again.
ParameterTypeDescription
filename *string
diff_spritesCompare two frames pixel for pixel: pixels added to or removed from the silhouette, repainted inside it, or changed in alpha alone, plus the colours involved and the box they sit in. Says so loudly when nothing changed, and takes `expect=` to turn the measurement into a pass or a fail.
ParameterTypeDescription
expectstringWhat the change should be: "identical", "silhouette", "interior", "coverage" or "mixed". Adds a verdict block with a pass or a fail, and is omitted rather than guessed at.
filename *stringThe sprite to compare, and the "before" side of the report.
frameintegerWhich frame of it (1-based).
layerstringCompare this layer alone instead of the composite, on both sides unless `other_layer` says otherwise. Worth reaching for: drawing tools write to ONE layer, so a composite diff can show nothing while the layer underneath changed completely, and the reverse.
otherstringThe sprite to compare against. Defaults to `filename`, which is what makes a frame-to-frame diff inside one animation this same call.
other_frameintegerWhich frame of `other` (1-based).
other_layerstringThe layer to read on the `other` side, when it is named differently.
dither_bandDither the boundary between two adjacent ramp steps, widening the transition.
ParameterTypeDescription
filename *string
frameinteger
from_step *integer
layerstring
patternstring
ramp *arrayColours darkest first.
to_step *integer
tolerancenumber
widthinteger
draw_brushStamp a custom brush shape (ASCII mask) at many points.
ParameterTypeDescription
anchorstring"center" (default) or "topleft", where each point sits in the brush.
brush *arrayThe brush as rows of characters. Any character other than space, '.', or '0' is a filled cell. e.g. a plus brush: ["010", "111", "010"].
color *stringColour to stamp the brush in.
filename *string
frameinteger
layerstring
points *arrayPositions to stamp at, list of {"x": int, "y": int}.
draw_curveQuadratic Bézier curve.
draw_ellipse_in_boxAn ellipse filling the same bounding box `draw_rectangle` takes, so an even diameter is possible and a circle can line up with a rectangle.
draw_image_base64Composite an inline base64 image onto a layer.
ParameterTypeDescription
blend_modestring
filename *string
frameinteger
image_base64 *string
layerstring
opacityinteger
x *integer
y *integer
draw_pixel_mapDraw from a character grid, one character per pixel, with a legend of symbol to colour. The write side of `get_pixels(format="map")` and the same shape it returns, so a read, an edit and a write round-trip. A ragged map is refused rather than padded, and a character the legend does not define is refused rather than skipped: a typo in a grid would otherwise paint nothing and report success.
draw_pixelsPlot individual pixels (per-pixel or shared colour).
draw_symmetric_pixelsPlot pixels with horizontal/vertical/4-way mirroring.
ParameterTypeDescription
axis_xinteger
axis_yinteger
color *string
filename *string
frameinteger
layerstring
modestring
pixels *array
draw_textRender text (built-in bitmap font or a TrueType file) as crisp pixels.
ParameterTypeDescription
color *string
filename *string
font_pathstring
font_sizeinteger
frameinteger
layerstring
scaleinteger
spacinginteger
text *stringThe string (supports "\\n" for multiple lines).
thresholdinteger
x *integer
y *integer
duplicate_frameDuplicate an existing frame (1-based); the copy is inserted directly after it.
ParameterTypeDescription
filename *string
frame *integer
duplicate_layerDuplicate a layer (including its cels) as a new layer on top.
ParameterTypeDescription
filename *string
layer *string
export_framesExport each frame to its own file (`{frame}` pattern).
ParameterTypeDescription
filename *string
output_pattern *string
overwriteboolean
scaleinteger
export_game_asset_bundlePNG + animated GIF + sprite sheet (+ JSON) + per-tag GIFs + `manifest.json`. Assesses every frame first and refuses on a measured defect (an absent keyline, or with `ramp`, a pixel off it) unless `allow_defects=True`; every other reading is listed in the manifest's `assessment`. `subject` is `"character"` (default) or `"prop"`, which withholds both the limb-separation ("masses have fused") finding and the character keyline findings.
ParameterTypeDescription
allow_defectsbooleanBundle even when the assessment finds a defect (default False). The defects are then the manifest's `warnings`, and `assessment.waived` is true.
bundle_namestring
filename *string
overwritebooleanReplace existing bundle files (default False = no-clobber). Every planned output is checked up front, so the bundle fails before writing any file if a target already exists.
ramparrayThe colours the art is drawn from, as given to `assess_sprite`. When set, every drawn pixel must be one of them. Refused before anything is launched past the colour-list cap or in a notation that does not parse. On an indexed sprite whose palette cannot hold it exactly, `assessment.palette` says so, and a refusal for pixels off it carries that reading.
scaleinteger
subjectstring"character" (the default) or "prop", as `assess_sprite` takes it. A prop is not given the limb or keyline readings, so a vase or a lantern whose narrowings are its shape is not refused for a missing keyline between masses it does not have; a pixel off `ramp` still refuses it. Anything else is refused before anything is launched or written.
export_gifExport the animation as an animated GIF.
ParameterTypeDescription
filename *string
loopbooleanTrue (the default) repeats forever, which is what Aseprite writes and what a cycle wants. False plays the animation once and stops.
output *string
overwritebooleanReplace `output` if it already exists (default False = no-clobber).
scaleinteger
export_godot_spriteframesGodot 4 `SpriteFrames` resource (.tres) + packed sheet; one animation per tag, timed from frame durations.
ParameterTypeDescription
default_loopboolean``loop`` flag for untagged sprites and tags without finite repeats (default True). Finite repeats always disable looping.
filename *string
output *stringDestination .tres path (workspace-relative).
overwritebooleanReplace existing outputs (default False = no-clobber). All three targets are validated up front, so nothing is written if any already exists.
scaleintegerInteger upscaling factor for the sheet.
sheet_outputstringSheet PNG path. Defaults to ``<output stem>.png`` beside the .tres.
texture_res_pathstringThe ``res://`` path of the sheet inside your Godot project (the AtlasTexture atlas). Defaults to ``res://<sheet filename>`` (same-folder import).
export_layerExport a single layer of one frame as a PNG (others excluded).
ParameterTypeDescription
filename *string
frameinteger
layer *string
output *string
overwriteboolean
scaleinteger
export_layersExport each layer to its own image file.
ParameterTypeDescription
filename *string
include_hiddenboolean
output_pattern *string
overwriteboolean
scaleinteger
export_minecraft_textureExport a sprite into a resource pack at its correct texture path.
ParameterTypeDescription
categorystringTexture subdirectory - block, item, entity, gui, particle, ...
filename *string
frame_orderarrayOptional playback order (see ``write_texture_mcmeta``).
frametimeintegerTicks per frame for the animation sidecar (1 tick = 50 ms).
interpolatebooleanBlend between animation frames.
namespacestringYour mod/pack id. Defaults to "minecraft", which overrides vanilla.
overwritebooleanReplace existing files (default False = no-clobber).
pack_root *stringThe resource-pack directory (its ``assets/`` tree is written under this).
texture_namestringIn-pack texture name, ``/`` allowed for subdirectories. Defaults to the sprite's filename stem.
export_motion_trailEvery frame of a motion in one image, oldest faintest, so arcs and spacing can be judged at a glance.
ParameterTypeDescription
filename *stringThe sprite.
framesarrayOr these frames (1-based), in the order given. Pass neither for every frame of the sprite, and not both.
output *stringThe image to write. Use .png: the fades are alpha, which a GIF cannot keep.
overwritebooleanReplace `output` if it already exists (default False = no-clobber).
scaleintegerInteger upscaling of the output (default 6). The scaled image is held to the same caps as any canvas.
tagstringComposite this tag's frames.
export_onion_skinRender a frame with neighbouring frames ghosted behind it.
ParameterTypeDescription
filename *string
frame *integerThe in-focus frame (drawn fully opaque), 1-based.
ghost_opacityinteger
nextinteger
output *string
overwriteboolean
previousinteger
scaleinteger
export_pngExport one frame as a flattened PNG (scaled).
ParameterTypeDescription
filename *string
frameintegerFrame to export, 1-based (default 1).
output *stringDestination .png path.
overwritebooleanReplace `output` if it already exists (default False = no-clobber).
scaleintegerInteger upscaling factor (default 1).
export_slice_metadataEngine-agnostic `<sprite>_slices.json`: hitbox/hurtbox/collision/attach/9-slice/pivot from slice names or JSON data.
ParameterTypeDescription
filename *string
outputstringDestination .json path. Defaults to ``<sprite>_slices.json`` beside the sprite.
overwritebooleanReplace an existing file (default False = no-clobber).
export_spritesheetPack frames into a sheet (+ JSON metadata; layer/tag filters & splits).
ParameterTypeDescription
data_outputstringOptional .json path to also write frame/tag/slice metadata (JSON-array format) describing each frame's rectangle in the sheet.
filename *string
ignore_layerstringExclude this layer (e.g. a "reference" layer).
layerstringOnly include this layer.
output *stringDestination sheet image (.png).
overwritebooleanReplace existing output(s) (default False = no-clobber). When data_output is given, both files are checked before anything is written.
paddingintegerPixels of padding around/between frames.
scaleintegerInteger upscaling factor.
sheet_typestringone of horizontal, vertical, rows, columns, packed.
split_layersbooleanLay out each layer as separate cels in the sheet.
split_tagsbooleanTreat each tag as a separate set in the sheet.
export_spritesheet_packedPack frames with extrude (the one-pixel border that stops texture bleeding in a game engine), merged duplicates and trim.
ParameterTypeDescription
data_formatstring"json-array" (the default when `data_output` is given) or "json-hash". The array form lists frames in order, which an engine indexing by frame number wants; the hash form keys them by name, which a loader looking frames up by name wants. The tag section is called `frameTags` in both.
data_outputstringOptional .json path for the sheet metadata, which also carries the layer, tag and slice lists.
extrudebooleanDuplicate each frame's edge pixels one pixel outwards around its cell. This is the fix for the thin seam or transparent line that appears between tiles in Unity, Godot or a shader at non-integer zoom: the sampler reads half a texel past the frame's edge, and without extrude that is whatever the neighbouring frame or empty space holds. The frame rectangle in the data file still names the frame itself, not the border.
filename *string
merge_duplicatesbooleanGive identical frames one rectangle in the sheet instead of a copy each, which is what shrinks a sheet full of held poses. Identical by pixels, so it catches both a duplicated frame and a linked cel. A packed sheet does this anyway and the result says so.
output *stringDestination sheet image (.png).
overwritebooleanReplace existing output(s) (default False = no-clobber). When `data_output` is given, both files are checked before anything is written.
paddingintegerPixels of padding around and between frames, as `export_spritesheet`. Padding separates frames; extrude fills the gap at the frame's own edge. They solve different halves of the same bleeding problem and compose.
sheet_typestringone of horizontal, vertical, rows, columns, packed (the default).
trimbooleanTrim each frame to its drawn pixels before packing, so empty margins cost no sheet space. The frame rectangles in the data file say where each frame went and how much was trimmed, so an engine can still place it correctly.
export_tag_gifExport only a named tag's frames as a GIF.
ParameterTypeDescription
filename *string
output *string
overwriteboolean
scaleinteger
tag *string
export_tagsExport each animation tag's frames to separate files.
ParameterTypeDescription
filename *string
output_pattern *string
overwriteboolean
scaleinteger
extract_paletteCollect the unique colours used in a sprite/image.
ParameterTypeDescription
filename *string
from_imagestringOptional image/sprite to scan instead of `filename`.
include_alphabooleanTreat differing alpha as distinct colours (default off).
max_colorsintegerError out if more unique colours than this are found.
set_as_palettebooleanApply the extracted colours as `filename`'s palette.
fill_areaFlood fill (paint bucket) from a point.
fill_checkerboardTwo-colour checkerboard pattern.
ParameterTypeDescription
color1 *string
color2 *string
filename *string
frameinteger
heightinteger
layerstring
sizeinteger
widthinteger
xinteger
yinteger
fill_gradientLinear/radial gradient, multi-stop, optional Bayer dithering.
ParameterTypeDescription
anglenumberDirection in degrees for linear gradients (0 = left->right).
colors *array2+ colour stops, e.g. ["#000000", "#ff004d", "#ffec27"], spread evenly. For dither=True, provide exactly 2 colours.
ditherbooleanOrdered (Bayer 4x4) dithering between 2 colours instead of smooth interpolation, great for limited palettes / retro looks.
filename *string
frameinteger
gradient_typestring"linear" or "radial".
heightinteger
layerstring
respect_alphaboolean
widthinteger
xinteger
yinteger
fill_layerFill the entire target layer/frame cel with a solid colour.
ParameterTypeDescription
color *string
filename *string
frameinteger
layerstring
fill_tileFill an existing tile's artwork with a solid colour.
ParameterTypeDescription
color *string
filename *string
frameinteger
layer *string
tile_index *integer
fill_tilemapFill the entire tilemap grid with a single tile index.
ParameterTypeDescription
filename *string
frameinteger
layer *string
tile_index *integer
flatten_spriteFlatten all layers into one.
ParameterTypeDescription
filename *string
flip_spriteFlip the entire sprite. direction: "horizontal" or "vertical".
ParameterTypeDescription
directionstring
filename *string
generate_rampBuild a hue-shifted shading ramp from a base colour. Says how many steps came back distinct, since lightness clamps at both ends.
ParameterTypeDescription
applystring"none" (just return), "append" (add to palette), or "replace".
base_color *string
chromanumberThe saturation the ramp holds, 0 to 1, in place of the base colour's own. **HLS saturation**, which is what `colorsys.rgb_to_hls` reports and not the HSV saturation an eyedropper usually shows. The two part company at the light end: #ff8080 is 1.00 saturated in HLS and 0.50 in HSV, so a caller passing a number read off a colour picker will get a more colourful ramp than intended.
easingstring
filenamestringIf set with apply, write the ramp into that sprite's palette.
hue_shiftnumber
light_huestring
light_rangenumber
sat_curvestring
saturation_shiftnumber
shadow_huestring
stepsinteger
get_celInspect a cel: whether it exists, its position, bounds, opacity, and links.
ParameterTypeDescription
filename *string
frameinteger
layer *string
get_paletteReturn the sprite's palette as a list of "#RRGGBBAA" colours.
ParameterTypeDescription
filename *string
get_pixelsRead the pixel colours of a region, composited or from one named layer, as rows or as a compact symbol map (≤ 64×64 per call).
ParameterTypeDescription
filename *string
formatstring"rows" (default) gives rows of "#RRGGBBAA" strings. "map" gives a `legend` of symbol to colour plus one string per row, which is around a tenth the size: a 16x16 icon of three colours costs roughly 3,400 characters as rows and 350 as a map, and defects like a one-pixel offset are visible in it at a glance.
frameinteger
heightinteger
layerstringRead this layer alone instead of the composite. This matters more than it sounds: drawing tools write to ONE layer, so the composite is not the surface your next edit will act on. A fill whose boundary is drawn on a different layer will flood the whole canvas while the composite looks as though it should have stopped.
widthinteger
xinteger
yinteger
get_propertiesRead the custom properties stored on one object inside the sprite.
ParameterTypeDescription
filename *string
frameinteger
layerstring
namestring
namespacestring
target *string
tileinteger
get_selectionReport whether there is a selection and what it covers.
ParameterTypeDescription
filename *string
get_sprite_infoFull structured state: size, mode, frames, layer tree, tags, palette.
ParameterTypeDescription
filename *string
get_tilemapRead the grid of tile indices.
ParameterTypeDescription
filename *string
frameinteger
layer *string
glowA halo of several rings, each a step further down a ramp, optionally dithered at the outer edge. Its own layer, so deleting it removes the effect, and one cel a frame, so one layer carries an animated one.
ParameterTypeDescription
base_colorstringGlow only around pixels near this colour, which is how a gem glows while the hand holding it does not. Distance is measured out from those pixels, but the glow is never painted over any part of the subject layer, so a body blocks the halo of a gem inside it.
dither_edgebooleanDither the outermost ring, so the glow ends in a half-density scatter instead of a hard line. This is binary coverage, a pixel either drawn or not, rather than a partial alpha, so every drawn pixel is still exactly a ramp step and conformance stays at 1.0.
falloffstring"linear" spaces the steps evenly. "quadratic" drops away faster, keeping a hotter core and a dimmer skirt, which is the one that reads as a light source rather than as an outline.
filename *string
frameintegerTarget frame, 1-based.
layerstringThe layer to glow around (default: top layer). Its cel is never modified.
new_layerstringName for the glow's own layer, created directly below `layer`, or reused when a previous call of this tool made it and `frame` has no cel on it yet. That is how one glow layer carries a flickering torch across four frames rather than needing four layers with one cel each. A second call for the same layer *and* frame is refused, because two halos composited into one cel are a picture neither call describes, and so is a layer of that name this tool did not create.
radiusintegerHow many rings, in pixels. 2 or 3 reads as a glow; much more reads as fog.
ramp *arrayColours darkest first. Ring 1, touching the artwork, takes the top step and the outermost ring takes `ramp[0]`, so a longer ramp fades more finely. For a glow that reads as light rather than as a coloured border this usually wants its own bright ramp (a gem's or a flame's), not the subject's body ramp.
tolerancenumberHow close a pixel must be to `base_color` to be treated as a source, as a weighted RGB distance. Ignored when `base_color` is omitted.
gradient_mapPut every pixel on a ramp by its brightness, whatever it started as: the tool that brings imported or filtered art onto a palette at all. Optional ordered dithering.
ParameterTypeDescription
biasnumberShift the whole mapping after contrast, from -1.0 to 1.0. Positive is lighter. Use it when an image maps too dark to read.
contrastnumberStretch the mapping around mid-grey. Above 1.0 pushes pixels toward the ends of the ramp and drops the middle steps; below 1.0 crowds everything into the middle. The interesting control is not which colours are used but how much of the art each step takes.
ditherstring"bayer4", "bayer2" or "checker" to break the bands. A pixel landing between two steps takes the darker or the lighter one by an ordered pattern, which reads as a gradient without adding a colour.
filename *string
frameinteger
heightinteger
layerstring
ramp *arrayThe ramp, darkest first. Order is the mapping, so a reversed ramp inverts the image.
widthinteger
xinteger
yinteger
gui_availableReport whether the Aseprite GUI can be launched.
health_checkSelf-test: Aseprite found?, version, workspace, tool count, and a real create+export round-trip.
import_imageBuild an editable `.aseprite` from a flat image.
ParameterTypeDescription
input_image *stringSource raster image.
output *stringDestination .aseprite path.
overwritebooleanReplace `output` if it already exists (default False = no-clobber).
import_reference_sequenceImport a sequence of images as per-frame references (rotoscoping).
ParameterTypeDescription
filename *string
images *array
layer_namestring
opacityinteger
scale_to_fitboolean
start_frameinteger
import_spritesheetSlice a sprite sheet image into frames, one per cell: a strip, a column or a grid.
ParameterTypeDescription
filename *stringThe .aseprite file to create.
frame_height *integerOne cell's height in pixels. Both must divide the sheet exactly in the direction the layout reads it: a partial cell is refused, never cropped or padded, and the refusal names the sizes that would divide.
frame_width *integerOne cell's width in pixels.
layoutstring"horizontal" reads one row left to right, so frame_height must be the sheet's height. "vertical" reads one column top to bottom, so frame_width must be its width. "grid" reads rows left to right, top to bottom.
overwritebooleanReplace `filename` if it already exists (default False = no-clobber).
source *stringThe sheet: a PNG, or anything else Aseprite opens, in the workspace.
invert_colorsInvert RGB (alpha preserved).
ParameterTypeDescription
filename *string
frameinteger
layerstring
invert_selectionSwap what is selected for what is not.
ParameterTypeDescription
filename *string
link_celsMake several frames share one image, which is how a held pose is authored.
ParameterTypeDescription
filename *string
frames *array
layer *string
list_palette_usageWhich palette indices the art actually draws with, as runs of consecutive entries, so the run worth cycling is visible before you cycle it. Indexed sprites only, because an RGB pixel carries no index.
ParameterTypeDescription
filename *string
frameintegerCount only this frame. Default: every frame.
layerstringCount only this layer. Default: every pixel layer, groups walked through. Tilemap layers are skipped, because the numbers in their cels are tile references rather than palette offsets.
list_slicesList every slice with its bounds, center, pivot, colour and user-data.
ParameterTypeDescription
filename *string
list_spritesList sprite/image files in the workspace.
load_paletteLoad a palette from `.gpl`/`.pal`/`.png`/`.aseprite`.
ParameterTypeDescription
filename *string
palette_file *string
make_4_frame_idle_animationTurn a 1-frame sprite into a 4-frame idle "bob" loop with a tag.
ParameterTypeDescription
bob_pixelsinteger
filename *string
frame_duration_msinteger
layerstring
tag_namestring
make_8_direction_walk_template8-direction walk template: frames + one tag per direction (N/NE/E/…).
ParameterTypeDescription
directionsarrayOverride the eight compass tags.
filename *string
frame_duration_msintegerSet on every frame. Shape the timing afterwards with `apply_timing_curve`: a walk holds its contacts.
frames_per_directioninteger8 is the convention for a walk, and it is what this defaults to: contact, down, pass, up for each leg. 6 is the budget option and 4 only reads as a walk mirrored on a side view, which an 8-direction sheet by definition is not. The default was 4 until this was fixed (#91), so a sprite scaffolded before then has half the frames a walk needs.
merge_layer_downMerge a layer down into the layer directly beneath it.
ParameterTypeDescription
filename *string
layer *string
mirror_layerReflect one half of a layer onto the other (build symmetric art).
ParameterTypeDescription
axisintegermirror line position (x for horizontal, y for vertical); default = centre.
directionstring"horizontal" (reflect left<->right) or "vertical" (top<->bottom).
filename *string
frameinteger
layer *string
source_sidestringwhich half is copied: "first" (left/top) or "second" (right/bottom).
modify_selectionGrow, shrink, or outline the current selection.
ParameterTypeDescription
filename *string
op *string"expand" grows by `quantity` pixels, "contract" shrinks, "border" replaces the selection with a band of that width around its edge. A border selection is how you scope an outline or a contact shadow to where two forms meet.
quantityintegerHow many pixels, at least 1.
move_frameMove one frame to another position, taking its cels and its duration with it.
ParameterTypeDescription
filename *string
frame *integerThe frame to move, 1-based.
to *integerWhere it should end up, 1-based, in the numbering *after* the move. Moving frame 2 to 5 on a six-frame sprite gives 1, 3, 4, 5, 2, 6.
move_layerReorder a layer (1-based stack index, 1 = bottom).
ParameterTypeDescription
filename *string
layer *string
to_index *integer
normalize_edge_runsEven out the run lengths along a silhouette's diagonals, which is the wander that reads as programmer art. Merges a stray one-row run into its neighbour and reports the jagged-corner count before and after; it only ever adds a pixel, so the extent cannot move, and it declines a 1:1 diagonal, a spike, a notch or a hairline by name.
ParameterTypeDescription
filename *string
frameintegerTarget frame, 1-based.
layerstringThe layer whose silhouette is read and written (default: top layer).
min_spanintegerHow thick the mass behind an edge has to be before its edge is treated as an edge, measured as the unbroken run of drawn pixels inward from the boundary. The default of 3 is the smallest value at which the added pixel is a minority of what it joins. Raise it to protect thin limbs; 2 is the floor.
offset_celsMove a drawn cel along a line or an arc across frames in one launch, spacing distributed so it reads as speed rather than as a limp.
ParameterTypeDescription
arc_heightnumber
dxinteger
dyinteger
easestring
filename *string
frames *arrayThe frames to place, in the order the movement passes through them.
layer *string
open_in_editorOpen a sprite in the live Aseprite GUI window (non-blocking) to watch edits.
ParameterTypeDescription
filename *string
outline_smartOutline a shape in colours taken from its own ramp, not one flat colour.
ParameterTypeDescription
darken_stepsintegerHow many ramp steps below the neighbouring interior colour.
filename *string
frameintegerTarget frame, 1-based.
layerstringTarget layer (default: top layer).
light_anglenumberDegrees, required for "selective". 135 is the usual key light.
modestring"colormatched" takes each outline pixel from the adjacent interior colour shifted `darken_steps` down the ramp. "selective" does the same but leaves the lit side unoutlined, which needs `light_angle`. "single" uses the darkest ramp entry all round, the classic look.
ramp *arrayColours darkest first. Outline pixels come from here.
tolerancenumberHow close an interior pixel must be to a ramp entry to be used as the source for its outline pixel.
paint_tile_pixelsDraw individual pixels into a tile's artwork (tile-local coordinates).
ParameterTypeDescription
colorstring
filename *string
frameinteger
layer *string
pixels *array
tile_index *integer
plan_asset_specDescribe an asset once (`aseprite_mcp.asset_spec.v1`), then validate it, dry-run the plan, or build it (structure only, canvas/layers/frames/tags/slices/palette + exports; you draw the art).
ParameterTypeDescription
spec *object
quantize_paletteDerive a palette from the artwork itself, reduced to at most N colours.
ParameterTypeDescription
filename *string
max_colorsinteger
ramp_betweenBuild a ramp from its two ends, the cool shadow and the warm highlight, interpolated in Oklab so the middle is a blend rather than a hue rotation.
ParameterTypeDescription
applystring
easingstring"perceptual" (the default) walks the straight line between the ends in Oklab, so the middle steps are evenly spaced to the eye and the ramp keeps its hue. "linear" is the naive sRGB blend, which darkens and greys the middle.
filenamestring
light_color *string
shadow_color *string
stepsinteger
ramp_from_artRecover the ramp a sprite is already painted with, ordered dark to light, with the share of the art each step covers.
ParameterTypeDescription
filename *string
frameinteger
layerstring
stepsinteger
remove_frameDelete a frame (1-based). The sprite must have more than one frame.
ParameterTypeDescription
filename *string
frame *integer
remove_layerDelete a layer (or group, including its children) by name or 1-based index.
ParameterTypeDescription
filename *string
layer *string
remove_sliceDelete a slice by name.
ParameterTypeDescription
filename *string
name *string
remove_stray_pixelsReplace pixels with no neighbour of their own colour in any of the eight directions by the colour around them: the dirt a shading pass leaves, without touching a dither or introducing a colour.
ParameterTypeDescription
erase_isolatedbooleanErase a cluster that stands clear of everything else instead of skipping it. **Opt-in, because this changes the silhouette**, which is the one thing the tool otherwise never does: a one-pixel spark, a floating highlight, the dot of an "i" drawn as its own element and a dither sparser than a checkerboard are all clusters by this rule and are all meant to be there. What it erases is reported as `erased`, apart from `replaced`, for the same reason.
filename *string
frameinteger
layerstring
min_clusterintegerHow many pixels a detached cluster may have and still count as dirt. 1, the default, is a lone pixel, which is all "isolated" means by itself; 2 catches the two-pixel speck these passes usually leave, where neither pixel is isolated because each has the other for company. Capped low, and the refusal names the cap: past a handful of pixels a thing standing clear of the artwork is a mark somebody drew. Only means anything with `erase_isolated`, and is refused without it rather than ignored.
protectarrayColours never to replace. A one-pixel eye highlight or a specular dot is a stray by this definition and is meant to be there, so name its colour. Also keeps a cluster `erase_isolated` would otherwise erase, if the colour is in it.
remove_tagDelete an animation tag by name.
ParameterTypeDescription
filename *string
name *string
rename_layerRename a layer.
ParameterTypeDescription
filename *string
layer *string
new_name *string
render_previewRender a frame to a PNG image you can view, scaled up for small sprites; a large one is fitted to 2048 px on its longer side. A frame the sprite does not have is refused. `views` shows it several ways side by side from the same render: `color`, `value` (greys of each colour's own lightness, for whether the forms read without hue), `silhouette` (black on white, for whether the shape reads and its parts have air between them) and `actual` (1x).
ParameterTypeDescription
filename *string
frameinteger
scaleinteger
viewsarrayShow the frame several ways side by side, labelled, instead of in colour alone. Choose from "color"; "value", the frame in greys of each colour's own lightness, which shows whether the forms read without hue (a figure drawn in dark colours on a dark outline turns to mud here and nowhere else); "silhouette", every drawn pixel black on white, which shows whether the shape reads with no interior and whether its parts have air between them; and "actual", the frame at 1x, the size a player sees. `["color", "value", "silhouette"]` is the usual check after a pass. Still one launch.
replace_colorSwap a colour (with per-channel tolerance).
ParameterTypeDescription
filename *string
frameinteger
from_color *string
layerstring
to_color *string
toleranceinteger
resize_canvasChange canvas size without scaling art (`top_left` / `center`).
ParameterTypeDescription
anchorstring
filename *string
height *integer
width *integer
resize_paletteResize the palette to `size` entries (new entries are black).
ParameterTypeDescription
filename *string
size *integer
reverse_framesReverse the order of a run of frames, keeping their timing with them.
ParameterTypeDescription
filename *string
framesarrayReverse these frames instead. They must be one unbroken run, because Aseprite reverses everything between the first and the last: a gapped list would silently take in the frames in between.
tagstringReverse one tag's frames.
rotate_spriteRotate the entire sprite by 90, 180, or 270 degrees (clockwise).
ParameterTypeDescription
angle *integer
filename *string
save_sprite_asSave a copy under a new path (optionally flattened).
ParameterTypeDescription
filename *string
flattenboolean
new_filename *string
overwriteboolean
scaffold_cycleScaffold a named cycle (`walk`, `run`, `idle`, `attack`, `hurt`, `death`) at its conventional frame count, one tag per phase (`walk_contactL`, `walk_downL`, ...), durations shaped by a timing curve rather than uniform, and loop or one-shot set correctly: attack, hurt and death are one-shots.
ParameterTypeDescription
base_msintegerThe duration of a passing frame; every other duration is a multiple of it. Defaults per kind, because a run passes through its poses faster than an idle breathes.
filename *string
framesintegerOverride the kind's default frame count.
kind *stringwalk | run | idle | attack | hurt | death.
scale_spriteScale the whole sprite (by factor or to dimensions; `nearest`/`bilinear`).
ParameterTypeDescription
factornumber
filename *string
heightinteger
methodstring
widthinteger
seam_occlusionDarken the seam where two masses of the same material overlap, from a character map whose legend names the masses and says which is nearer the viewer. `contact_shadow` finds its occluder by colour, so it cannot see an arm against a torso cut from one stone. Falls off with distance, so the contact does not read as drawn brickwork.
ParameterTypeDescription
depthintegerHow many ramp steps darker, against the seam itself, tapering to nothing at `radius`. Refused at or above the ramp's length, which would slam the seam to the darkest entry whatever was there.
filename *string
frameinteger
layerstring
legend *object{symbol: z}, where a **higher z is nearer the viewer**. `{"a": 1, "b": 0}` says mass "a" overlaps mass "b", so the seam darkens on "b" and not on "a". Occlusion is asymmetric and that is the whole point: darken both sides of a seam and you have drawn brickwork, darken the side behind and you have put one mass in front of another.
radiusintegerHow far the darkening reaches from the seam, in pixels. 2 is usually right and is what gives the falloff somewhere to happen.
ramp *arrayColours darkest first. Darkened pixels stay on this ramp, so conformance is preserved by construction.
rows *arrayOne string per row of the map, one character per pixel. "." is a pixel that belongs to no mass, and is neither darkened nor treated as an occluder.
tolerancenumberHow close a pixel must be to a ramp entry to be darkened, as a weighted RGB distance. A pixel further off is left alone, so a seam crossing another material does not drag it onto this ramp.
xinteger
yinteger
select_by_colorMagic wand: select every pixel matching a colour.
ParameterTypeDescription
color *stringThe colour to match.
filename *string
frameintegerWhich frame to sample, 1-based.
layerstringWhich layer to match on. Defaults to the top layer, which is the layer the drawing and shading tools also default to, so a selection made here scopes the call that follows it.
toleranceinteger0 matches exactly. Higher values also catch nearby colours, which is useful on artwork that was anti-aliased or converted from a photo.
select_regionSelect a rectangle, ellipse, or polygon (`replace`/`add`/`subtract`/`intersect`).
ParameterTypeDescription
filename *string
heightinteger
modestring
pointsarray
shapestring"rect", "ellipse" (both use x/y/width/height) or "polygon" (uses points).
widthinteger
xinteger
yinteger
set_all_frame_durationsSet every frame's duration in milliseconds (uniform animation speed).
ParameterTypeDescription
duration_ms *integer
filename *string
set_cel_opacitySet a cel's opacity (0-255).
ParameterTypeDescription
filename *string
frame *integer
layer *string
opacity *integer
set_cel_positionMove a cel's image to position (x, y) within the canvas.
ParameterTypeDescription
filename *string
frame *integer
layer *string
x *integer
y *integer
set_cel_z_indexReorder one cel against the other cels in its frame, without moving any layer.
ParameterTypeDescription
filename *string
frame *integer
layer *string
z *integer
set_color_modeConvert between `rgb` / `indexed` / `gray` (with dithering); builds the palette from the art and refuses to drop pixels.
ParameterTypeDescription
color_mode *string"rgb", "indexed", or "gray".
ditheringstring"none" (default), "ordered", or "old". How a colour between two palette entries is resolved. Indexed conversions only.
filename *string
palette_sourcestring"from_art" (default) quantizes the sprite's colours into a new palette and maps onto that, so flat colours convert exactly. "keep" maps against the palette the sprite already has, for when you loaded or built one deliberately; snapping the art to that palette is the point, so expect colours to shift, and expect two art colours to merge where the palette has only one entry near them. Indexed conversions only; the other modes have no palette to choose.
set_frame_durationSet a single frame's duration in milliseconds (1-based frame).
ParameterTypeDescription
duration_ms *integer
filename *string
frame *integer
set_layer_propertiesUpdate opacity, blend mode, visibility, editability, name.
ParameterTypeDescription
blend_modestring
editableboolean
filename *string
layer *string
namestring
opacityinteger
visibleboolean
set_paletteReplace the entire palette with the given list of colours.
ParameterTypeDescription
colors *array
filename *string
set_palette_colorSet a single palette entry by index (0-based). Grows the palette if needed.
ParameterTypeDescription
color *string
filename *string
index *integer
set_propertiesStore a custom property on an object inside the sprite, in the .aseprite file.
ParameterTypeDescription
as_jsonbooleanParse `value` as JSON before storing it (see `value`).
deletebooleanRemove the property instead of setting it. `value` is then ignored, and removing a key that was not there is not an error.
filename *string
frameinteger1-based frame number, for target "cel" (default: the first frame).
key *stringThe property name, e.g. "hitbox".
layerstringThe layer's name. Needed for target "layer", "cel" and "tile".
namestringThe tag's or slice's name, for target "tag" and "slice".
namespacestringKeep the property in a named group rather than in the unnamed one the editor's own property panel uses. Two tools can then both use the key "anchor" without colliding. Namespaces cannot be listed back, so a caller has to know the name to read one again.
target *stringWhich kind of object: "sprite", "layer", "cel", "tag", "slice" or "tile".
tileintegerAn index into the layer's tileset, for target "tile". 0 is the empty tile.
valueanyWhat to store. Text by default, so value="7" stores the two-character string "7". Pass as_json=True to store a number, a boolean or a structure: then "7" stores the number 7, "true" stores a boolean, and '{"x": 8, "y": 15}' stores a table. A value that begins like a JSON object or array is read as JSON either way, since there is no other reading of one.
set_sliceUpdate an existing slice's bounds, name, colour, or data.
ParameterTypeDescription
colorstring
dataany
filename *string
heightinteger
name *string
new_namestring
widthinteger
xinteger
yinteger
set_tagUpdate an existing tag. Only the arguments you pass are changed.
ParameterTypeDescription
colorstring
directionstring
filename *string
from_frameinteger
name *string
new_namestring
repeatsinteger
to_frameinteger
set_tilePlace a tile (by tileset index, 0 = empty) at grid cell (column, row).
ParameterTypeDescription
column *integer
filename *string
frameinteger
layer *string
row *integer
tile_index *integer
set_tilesPlace many tiles at once. tiles: list of {"column", "row", "index"}.
ParameterTypeDescription
filename *string
frameinteger
layer *string
tiles *array
set_transparent_colorSet the transparent index (indexed sprites).
ParameterTypeDescription
filename *string
index *integer
shade_facetsShade a form built from flat planes, one tone per plane, from a map whose legend names directions instead of colours. For anything hard: a crate, a helm, cut stone. `shade_region_by_light` reads its normals from the silhouette's distance field, so it rounds a form over and a block comes out a pillow.
ParameterTypeDescription
ambientnumber
filename *string
fill_strengthnumber
frameinteger
layerstring
legend *object{symbol: facet direction}. A direction is an angle in degrees in the same convention as `light_angle` (0 faces right, 90 up, 135 up and to the left), the word "front" for a plane square to the viewer, or `[angle, z]` to tilt a plane toward the viewer as well, which is how a chamfer is said.
light_anglenumber
light_znumber
ramp *arrayColours darkest first. Facet tones are entries of this and nothing else.
rows *arrayOne string per row of the map, one character per pixel, as `draw_pixel_map` takes. "." leaves a pixel alone.
xinteger
yinteger
shade_region_by_lightShade a flat region as a lit form, from a ramp and a light direction.
ParameterTypeDescription
ambientnumberFloor brightness in shadow, 0 to 1. Pixel art rarely wants true black in shadow, so this sits well above zero by default.
base_colorstringOnly shade pixels near this colour. Defaults to every opaque pixel in scope, which is usually what you want once a selection is active.
biasnumberShift the whole result along the ramp, in steps. Use this when the result is uniformly a shade too dark or light, rather than re-tuning the lighting.
bulgenumberHow rounded the form reads. 1.0 is sphere-like; lower is flatter, which suits cloth and flat panels; higher exaggerates the curvature.
filename *string
fill_anglenumberDegrees, a second light. Omitted by default, which leaves the result exactly as it was before this argument existed. Set it opposite `light_angle` for the fill or bounce light that keeps a shadow side readable instead of letting it go flat dark: the shadow side is where a sprite stops describing its form, and one light can only ever leave it at `ambient`.
fill_strengthnumberHow strong the fill is next to the key, 0 to 1 and capped below 1. A fill that matches the key cancels the form entirely, because the two terminators land on opposite sides of the same shape and sum to a flat fill, so the cap refuses the value that destroys what the tool is for. A third to a half is the conventional choice.
frameintegerTarget frame, 1-based.
layerstringTarget layer (default: top layer).
light_anglenumberDegrees. 0 is from the right, 90 from above, 135 from the upper left, which is the conventional pixel-art key light.
light_znumberHow much the light comes from the viewer, 0 to 1. Higher flattens the terminator and lights more of the form.
ramp *arrayColours darkest first, as from `generate_ramp`. Output uses only these.
rimnumberLight wrapping the edge away from the key, 0 to 1. A little reads as a bounce; a lot reads as backlight.
tolerancenumberHow close a pixel must be to `base_color` to count as part of the region, as a weighted RGB distance. Ignored when `base_color` is omitted. **A distance between colours, not between materials.** Two ramps of different materials are routinely closer than the default 24: every step of a gold ramp generated by `generate_ramp` is within 24 of a step of a brass one, so a pass scoped to the brass matched the gold as readily. Art whose fills came from `generate_ramp` is exact, so scope it with a tolerance near zero and keep the wide default for hand-drawn art that varies.
shift_along_rampMove pixels along a colour ramp, keeping every one of them on the palette.
ParameterTypeDescription
filename *string
frameinteger
heightinteger
layerstring
ramp *arrayThe ramp, darkest first, as produced by `generate_ramp`. Order matters: negative `steps` moves toward the front of this list.
steps *integerHow far to move. Negative darkens (toward the front of `ramp`), positive lightens. Pixels already at an end stay there rather than wrapping.
tolerancenumber
widthinteger
xinteger
yinteger
smear_frameDraw one frame's subject along its own movement, so fast motion reads as speed rather than as teleportation. `stretch` elongates it and thins to a point; `echo` draws it several times. The vector comes from the cels themselves, and with a `ramp` every trail pixel is a colour the sprite already had.
ParameterTypeDescription
filename *string
frame *integerThe frame to smear. Its own cel is the subject and stays on top, unchanged; the trail is drawn behind it. Only this frame is written.
from_frameintegerThe frame the movement came from. Defaults to the one before `frame`.
layer *string
modestring`stretch` draws the subject once, elongated back along the vector and thinning to a single pixel at the tip, which is the classic one-frame smear. `echo` draws it `steps` times along the vector, each copy a step further down the ramp, which is the multiple-exposure smear.
ramparrayThe colours, darkest first, the trail is allowed to use, as `generate_ramp` returns them. **Pass this.** Each pixel of the trail is the nearest ramp entry to the subject's own colour there, stepped toward the dark end and clamped (never wrapped), so `palette_conformance` stays at 1.0, which is the property every shading tool here holds to and what a pixel artist actually draws. Without it the fallback is opacity, and the fallback **leaves the palette**: the trail is then made of colours that are not in the sprite, which is motion blur rather than a smear. On an *indexed* sprite the ramp is required rather than preferred, and the call is refused without one: an indexed pixel is an offset into a palette and carries no alpha, so the fallback would snap every copy back to the subject's own colour and draw a solid blob.
stepsintegerHow many copies `echo` draws. Defaults to 3, and is refused with `mode="stretch"` rather than silently ignored.
strengthnumberHow far back the smear reaches, as a fraction of the movement. 0.6 is a trail that clearly trails; 1.0 reaches all the way to the previous position; above 1 it overshoots, which is a real choice an animator makes.
sort_paletteSort by hue/luminance/saturation/value (remaps indexed pixels).
ParameterTypeDescription
bystring
filename *string
reverseboolean
specular_highlightPlace a small glint where the light reflects at the viewer, never on an edge pixel. The ramp's top step, or a brighter colour for metal.
ParameterTypeDescription
base_colorstringOnly consider pixels near this colour, as for `shade_region_by_light`. Scope it the same way you scoped the shading.
bulgenumberHow rounded the form reads. Match the shading pass, or the normals this works from are not the normals the shading used.
filename *string
frameintegerTarget frame, 1-based.
highlight_colorstringThe glint's colour, defaulting to the ramp's top step so `palette_conformance` stays at 1.0. This is the flag for metal, which is the one material whose specular is genuinely brighter than its own ramp: name a near-white there. A colour that is not on `ramp` will drop conformance against that ramp, which is the honest trade rather than a bug, and the result says whether it happened.
layerstringTarget layer (default: top layer).
light_anglenumberDegrees, and it must match the shading pass or the glint contradicts the form. 0 is from the right, 90 from above, 135 from the upper left.
light_znumberHow much the light comes from the viewer, 0 to 1. Match the shading pass.
ramp *arrayColours darkest first, the same ramp the form was shaded with.
sizeintegerHow many pixels the glint covers. A count, not a radius: a specular is two or three pixels on most sprites, and the point of this tool is that it stays that small. The pixels are grown outward from the brightest one and stay touching, so the result is one glint rather than scattered dots.
tightnessnumberHow narrowly the surface has to face the reflection to count, 0 to 1, as a threshold on the normal against the half-vector. High is a tiny hard glint on a polished surface; low lets a broader shoulder qualify, from which `size` still takes only the best pixels. If nothing clears it the call is refused and the message names the best alignment the form actually offers, so the number to lower it to is in the error rather than a guess.
tolerancenumberHow close a pixel must be to `base_color` to count as part of the region. Ignored when `base_color` is omitted.
squash_stretch_passSquash or stretch the drawing on each frame while the edge it rests on stays put, preserving volume (what the anchored axis loses, the other gains). Where `tween_cels` resamples one drawing across frames, this deforms every frame's own art, which is how an animation that already exists gets its weight. Nearest neighbour only, and it reports what ran off the canvas.
ParameterTypeDescription
amountnumberHow much of the anchored axis is given up, 0 to 0.8. 0.2 is a firm landing. **Negative stretches** instead, which is the other half of the pair: -0.2 makes the shape 20 percent taller and correspondingly narrower, for the frames before and after an impact.
anchorstringThe edge that stays put: "bottom" (the usual contact edge), "top", "left" or "right". "bottom" and "top" squash vertically, "left" and "right" horizontally.
filename *string
framesarrayWhich frames to work on, 1-based. Defaults to every frame. A frame with nothing drawn on it is reported as skipped rather than failing the pass.
layerstringThe layer holding the shape (default: the top one). The drawn box on each frame is what gets deformed, not the canvas.
stamp_fileComposite another image/sprite file onto a layer (opacity, blend mode).
ParameterTypeDescription
blend_modestring
filename *string
frameinteger
layerstring
opacityinteger
source *stringPath to a .aseprite/.png/.bmp/... to stamp in.
source_frameinteger
x *integer
y *integer
stamp_patternTile an image/sprite across a region (with spacing, opacity, blend).
ParameterTypeDescription
blend_modestring
filename *string
frameinteger
heightinteger
layerstring
opacityinteger
source *stringImage/sprite to tile.
spacing_xinteger
spacing_yinteger
widthinteger
xinteger
yinteger
surface_emissionLight an interior source onto the surface around it, up that surface's own ramp by distance. `glow` builds its halo on a layer below the art, so a core inside a silhouette gets nothing; this warms the stone instead, and two tones at one distance move together so the form survives.
ParameterTypeDescription
depthintegerHow many ramp steps the ring touching the source is lifted. The outermost ring is always lifted by at least 1, because a ring that moves nothing should not be in the radius. Refused at or above the ramp's length.
falloffstring"quadratic" keeps the lift concentrated near the source, which is how light falls off and what reads as a source; "linear" spreads it evenly.
filename *string
frameintegerTarget frame, 1-based.
layerstringThe layer whose surface is lit, and the one written (default: top layer).
radiusintegerHow many rings of surface the light reaches, in pixels.
ramp *arrayColours darkest first, and **the ramp the surface is painted on**: this moves pixels along it, so a pixel further than `tolerance` from every entry is left alone rather than dragged onto a palette it was never on. The warmth therefore comes from the ramp's upper end, which is where a hue-shifted ramp is warm (`generate_ramp` with `light_hue`). To tint as well as brighten, hand it a ramp built from the surface's midtone up into the source's colour and the lift walks into that hue.
source_color *stringThe colour of the thing emitting, for example a gem or a molten core. Source pixels are never repainted; they are where the light comes from.
source_tolerancenumberHow close a pixel must be to `source_color` to count as the source. Defaults to `tolerance`, and it wants to be **tight** for the reason `contact_shadow` documents at `occluder_tolerance`: the source is a flat colour you named, while `tolerance` has to stay loose enough for shaded art that varies, and one number cannot be both. The result warns when `source_color` cannot be told apart from a ramp entry, because then the surface is partly its own source and the light spreads from the wrong pixels.
tolerancenumberHow close a pixel must be to a ramp entry to be lifted, as a weighted RGB distance.
trim_spriteAuto-crop the canvas to non-transparent content.
ParameterTypeDescription
filename *string
tween_celsScale, turn and fade one drawn cel across frames in one launch: squash and stretch (the two axes go opposite ways), whole-degree rotation sampled nearest-neighbour so no colour is invented, and a fade that sets cel opacity rather than baking alpha. `anchor="bottom"` squashes onto the ground, which `validate_loop`'s contact check then confirms.
ParameterTypeDescription
anchorstring
easestring
filename *string
frames *arrayThe frames to write, in the order the change passes through them. The first is the source, and it is rewritten too when `scale_from`, `rotate_from` or `opacity_from` is not the identity.
layer *string
opacity_frominteger
opacity_tointeger
rotate_fromnumber
rotate_tonumber
scale_fromnumber
scale_tonumber
scale_y_fromnumber
scale_y_tonumber
unlink_celsGive frames their own copy of a shared image again, so they can differ again.
ParameterTypeDescription
filename *string
frames *array
layer *string
validate_asset_against_specCloses the loop: does the sprite that got built actually match the spec it was built from. Canvas, layer names, frame count, tags, slices, palette capacity. Reports what it checked as well as what failed, so "nothing was wrong" and "nothing was checked" cannot be confused.
ParameterTypeDescription
filenamestringThe sprite to check. Defaults to the spec's own ``<name>.aseprite``, which is what `build_asset_from_spec` would have written.
spec *object
validate_asset_specDescribe an asset once (`aseprite_mcp.asset_spec.v1`), then validate it, dry-run the plan, or build it (structure only, canvas/layers/frames/tags/slices/palette + exports; you draw the art).
ParameterTypeDescription
spec *object
validate_loopMeasure a cycle instead of playing it: per-frame hashes, spacing, contact rows, durations, and the faults a still frame hides (a wrap frame repeating the first, duplicated poses, placeholder timing, a drifting contact edge).
ParameterTypeDescription
filename *string
jitter_tolerancenumberPixels of spacing wobble to ignore. Integer cel positions make 1px unavoidable, so that is the default; pass 0 to see every reversal.
layerstringMeasure one layer's cels instead of the flattened frame, so a moving character can be measured without the background it sits on.
loopsbooleanOverride whether these frames are a cycle. One-shots (attack, hurt, death) do not wrap, so a repeated last frame is only a warning for them.
tagstringLimit the check to one animation tag's frames. Its repeat setting also decides whether the seam is treated as a loop's wrap.
validate_minecraft_textureCheck a sprite against Minecraft's texture rules before it ships.
ParameterTypeDescription
categorystring
error_rationumber
expected_framesinteger
filename *string
max_palette_sizeinteger
namespacestring
pack_rootstring
texture_namestring
texture_sizeinteger
tilingboolean
warn_rationumber
validate_sprite_for_game_exportCheck a sprite is game-ready (dimensions/tile multiple, colour mode, frames, required tags, transparency, palette budget, exports exist) → pass/fail report.
ParameterTypeDescription
allowed_color_modesarray
expected_exportsarray
expected_heightinteger
expected_widthinteger
filename *string
max_framesinteger
max_palette_sizeinteger
min_framesinteger
require_transparent_backgroundboolean
required_tagsarray
spritesheet_datastring
tile_multipleinteger
write_pack_mcmetaWrite `pack.mcmeta`, the file that makes a directory a resource pack.
ParameterTypeDescription
descriptionstring
mc_versionstringA known Minecraft version (e.g. "1.21.1") to look the format up from. Defaults to 1.21.1.
overwriteboolean
pack_formatintegerThe format number, overriding `mc_version`. Required for versions outside the known table - an unverified guess produces a pack the game rejects as incompatible, so it is refused rather than guessed.
pack_root *stringDirectory to become the pack root (created if needed).
supported_maxinteger
supported_mininteger
write_texture_mcmetaWrite the `<texture>.png.mcmeta` sidecar for an animated texture.
ParameterTypeDescription
frame_heightinteger
frame_orderarrayOptional playback order: frame indices (0-based) or ``{"index": i, "time": t}`` objects to hold individual frames longer.
frame_widthinteger
frametimeintegerTicks each frame is shown for (1 tick = 50 ms).
interpolatebooleanBlend between frames - smooth for gradients, blurry for pixel art.
overwriteboolean
texture_path *stringPath to the ``.png`` (the sidecar goes beside it, same name + .mcmeta).

Security checks

  • ✓README presentThe repository's README runs to about 12K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionScanned 74 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

Releases

v0.10.0v0.10.0 - the results started saying what the calls did · 3 Oct 2026Five new tools, 147 to 152, and none of them is what this release is about. <p align="center"> <img src="https://raw.githubusercontent.com/MalloyTheDev/aseprite-mcp/v0.10.0/docs/assets/showcase/dungeon.gif" width="520" alt="A torch-lit…
v0.9.0v0.9.0 - the server can check its own work · 1 Oct 2026Thirteen new tools, 134 to 147. The ones that matter are not the ones that draw. <p align="center"> <img src="https://raw.githubusercontent.com/MalloyTheDev/aseprite-mcp/v0.9.0/docs/assets/showcase/shading_stages.png" width="520" alt="A…
v0.8.1v0.8.1 - showcase art redrawn, and reproducible · 30 Sep 2026A follow-up to v0.8.0, which was tagged the hour before the showcase art was redrawn. No code changed. <p align="center"> <img src="https://raw.githubusercontent.com/MalloyTheDev/aseprite-mcp/v0.8.1/docs/assets/showcase/item_sheet.png"…
v0.8.0v0.8.0 - shading, animation, selections, and 134 tools · 30 Sep 2026The release that made the server usable by any MCP client and gave it an opinion about pixel art. 96 tools grown to 134, four new domains, and two defects that silently corrupted files closed. <p align="center"> <img…
v0.7.0v0.7.0 - Godot SpriteFrames and slice metadata exports · 13 Jun 2026v0.7.0 adds the first engine-ready export layer — take a sprite all the way to game-engine resources. Highlights New Godot 4 `SpriteFrames` export preset (`export_godot_spriteframes`) — `.tres` + packed sheet, one animation per Aseprite…

README

The repository's README runs to about 12K words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About Aseprite MCP

How do I install Aseprite MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Aseprite MCP safe to use with an AI agent?

Its trust score is 67 out of 100 (good). It passes all 5 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Aseprite MCP still maintained?

Yes — the latest release is v0.10.0 (3 Oct 2026), and the last commit was 2 days ago. The repository has 46 stars and 9 open issues.

What tools does Aseprite MCP provide?

Conduid read 161 tools from the source: add_drop_shadow, add_frame, add_group_layer, add_layer, add_outline, add_palette_color, add_reference_layer, add_slice and 153 more. 152 of them publish their parameters, listed under Tools above.

What license is Aseprite MCP released under?

The repository declares the MIT license. That applies to the latest release, v0.10.0, as well.