aseprite-claude-connector
Drives a live Aseprite editor or runs headless Aseprite to create and edit sprites, layers, animations, tilemaps, and exported art, with canvas previews, animation helpers, QA tools, and undoable edit batches.
Exports sprite strips and packed atlases for use in GameMaker projects.
Exports sprites, atlases, and animation assets into Unity projects, including generated .meta files with multiple-mode sprite rectangles and baked pivots, and supports Unity Rule Tiles.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@aseprite-claude-connector Draw a 32x32 pixel art sword sprite and export it to my Godot project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
aseprite-claude-connector
Let Claude draw in your open Aseprite, see what it drew, and put the art straight into your Godot or Unity project.
Install
You need Python 3.10+ and Aseprite 1.3+. One command installs the package, registers the server with Claude Code, and adds the Aseprite extension:
pip install aseprite-claude-connector && aseprite-claude-connector setupRestart Aseprite, allow the connection once, and ask Claude:
"Make a 32×32 potion sprite, animate it bubbling, and show me the loop."
Using the Claude desktop app or another client? See other ways to install.
Related MCP server: mnehmos.aseprite.mcp
Why this one
It works in your open editor. Edits appear on your canvas as you watch, and each one is a named undo step, so Ctrl-Z takes back exactly one thing Claude did. It also runs headless against files on disk.
Claude sees the canvas.
look,look_animation, and drawing previews return pictures, so Claude checks its work instead of trusting a tool result.Art goes straight into your game. One action exports to a Godot or Unity project, with animations from tags, slices, and pivots already set up.
194 typed tools. Drawing, palettes, animation, tilemaps and autotiles, isometric shapes, skies, water and light, cleanup, and art QA.
Safe by default. A pixel cap, dry runs, one-undo batches, a Pause toggle in Aseprite, and sockets that only listen on your own computer.
Built on aseprite-live-mcp by Kyle Ocheltree / OakTree Games, MIT licensed.
Claude's eyes.
look,look_animation, and drawing previews return pictures, so Claude checks the canvas instead of trusting a tool result.Simple setup. One command registers the server and installs the extension.
Export to Game. A button in Aseprite, and
export_to_game, that write into your project's sprites folder.Safer edits.
set_safety_rails, dry runs,edit_batch, andedit_in_selection.Animation and cleanup.
inbetween,walk_cycle_template,apply_timing,check_loop,find_stray_pixels, andrecolor_variants.Art from a reference.
pixelate_referenceturns a photo or painting into a pixel-art layer at your size and palette, andcompare_to_referenceshows where the canvas still differs from it, with scores.Living scenes.
ambient_motionloops a still scene with wind, water shimmer, a light glint, and motes, snow, rain, or embers.split_into_layersseparates a picture into parts from a few points,extend_scenewidens it with its own texture, andclean_pixel_artmakes a pixelated picture read as drawn.Game assets.
animate_partsanimates a character from its part layers like a cut-out puppet, with crisp RotSprite-style turning.make_seamlessandmake_autotilesbuild a 47-tile terrain set with a Godot TileSet or a Unity Rule Tile.make_normal_mapreadies art for 2D lights,relight_scenemakes dawn, sunset, and night versions,clean_linestidies sketched strokes, andexport_animationwrites a GIF or animated PNG at any whole-number scale.Skies, water, and light.
paint_skylays a dawn, day, sunset, or night sky with a sun, stars, and clouds that drift as a loop.paint_mountainsstands hazy ranges on the horizon,reflect_in_watermirrors the scene into a rippling lake,add_mistdrifts mist along a shore,add_firelights a looping fire with embers,add_glowlights the scene from it, andadd_rim_lightpicks out the edge of a layer that faces the light.Working together.
add_reference_image,change_summary,explain_changes, and session recording to a GIF.More export targets.
export_gamemakerstrips andpack_atlasfor several sprites on one texture.
See it in action
Each of these is an AI agent driving a live Aseprite canvas through the MCP — one named undo per step.
And the part no headless server can do — the agent asking you, inside your editor (a real screen capture, not a mockup):
A full set, one live session
Everything below came out of a single session against one running editor: five
sprites built, QA'd, assembled into a sheet, sliced, and exported for Unity —
finished with an in-editor approval dialog. The .aseprite sources are in
examples/showcase/; open them and Ctrl-Z backwards
through the build.
The QA tools aren't decoration. During this build, frame_diff's change bbox
caught a motion tween the eye missed — every cel displaced by its image origin
and clipping at the canvas edge. One transaction fixed it; the same diff
re-verified it:
The sheet's ten slices went to Unity in one action —
examples/showcase/unity/ has the atlas PNG and its
generated .meta: ten Multiple-mode sprites, rects y-flipped, every pivot baked.
Other ways to install
Add --desktop and setup registers the server with the Claude desktop app too:
pip install aseprite-claude-connector && aseprite-claude-connector setup --desktopThen quit Claude fully (from the tray or menu bar too) and reopen it. The server runs on your computer, so this works in the desktop app on Windows and Mac, not in claude.ai in a browser or the phone app.
Install with the command above, using setup --no-register, then add:
{
"mcpServers": {
"aseprite": {
"command": "python",
"args": ["-m", "aseprite_claude_connector"],
"env": {
"ASEPRITE_MCP_BACKEND": "headless", // or "live" — see below
"ASEPRITE_PATH": "C:/Program Files/Aseprite/Aseprite.exe"
}
}
}
}ASEPRITE_PATH is auto-detected on common installs (Steam and standalone) if you
omit it.
git clone https://github.com/UmarMuhammad18/aseprite-claude-connector
cd aseprite-claude-connector
pip install -e .Quickstart — headless (2 minutes, no editor open)
Add the server with "ASEPRITE_MCP_BACKEND": "headless" (above). In headless
mode, tools take a file argument — the .aseprite to act on. Ask your agent to
run status to confirm the connection, then try:
"Create a 32×32 sprite at C:/art/coin.aseprite, draw a gold circle, and export it as coin.png."
Quickstart — live editor (drive your open canvas)
The live backend edits your running Aseprite, one undo step per edit. Set it up with one command:
pip install aseprite-claude-connector && aseprite-claude-connector setupsetup registers the server with Claude Code and installs the Claude Bridge
extension. Restart Aseprite if it's open, using Cmd+Q on a Mac. It asks once for
permission to connect: tick the box to remember, then allow it. Reload your editor if
Claude Code is running inside one, so it picks up the tools. That's the whole setup.
From then on the server starts the relay itself and Aseprite connects on its own. Tools act on your active document; watch edits appear and press Ctrl-Z to undo each one. The sprite Claude creates or opens stays its target even if you click another tab, so its edits never land in the wrong sprite; say "work on this one" to point it at the one you have open. File → Scripts → Claude Bridge opens a status panel with live activity and a Pause toggle.
Using another MCP client? Run aseprite-claude-connector setup --no-register and add the
server to that client yourself. To install the extension by hand instead,
aseprite-claude-connector setup --out <folder> writes a .aseprite-extension file you can
add in Edit → Preferences → Extensions.
See docs/ARCHITECTURE.md for how it works.
Export to your game
In Aseprite, choose File → Export → Export to Game..., pick your game folder once, and press Export. Or ask Claude: "export this to my game". Then select the sprite in your engine.
Folder you pick | Where it goes | What you get |
Godot project | Your | PNG, plus a |
Unity project |
| PNG and a |
Any other folder | Your | PNG sprite sheet |
For GameMaker, ask for export_gamemaker, which writes strips it cuts up on import. To
put several sprites on one texture with JSON frame data, ask for pack_atlas.
Pick a folder deeper inside a project to put the art exactly there. The first export from the button may ask to allow file access: allow it. To export with one key, assign a shortcut under Edit → Keyboard Shortcuts. In Godot, set the node's Texture Filter to Nearest for sharp pixels.
What you can ask it to do
"Make a 32×32 sprite, draw a red circle, and export it as icon.png."
"Export machines.aseprite as a Unity sprite sheet at 16 pixels-per-unit." → drops a sheet + a pre-sliced
.metastraight into your Unity project."Slice this atlas, set each slice's pivot, and export it to Unity with the pivots baked in."
"Run a QA sweep: it must be 64×64, ≤ 16 colors, grid-aligned, with 2px of sticker padding."
"Draw an isometric box for a 1×1 machine base and put a recessed port on its front face."
"Set up a 16×16 tilemap layer, draw grass and dirt tiles, and lay out a 10×6 ground strip."
"Assemble my exports into one labeled sheet, slice each piece, set the pivots, and hand Unity the atlas."
"Pop a dialog in my editor: approve or redo. Then wait for me to click the anchor point."
"Watch the sprite while I touch it up; when I stop, re-run the QA sweep."
"Diff frames 3 and 4 — did the arm actually move?"
"Look at the walk cycle and tell me which frame pops."
"Draw the outline with a preview, and check it before you carry on."
"Fill in three frames between these two poses, then check that the walk loops cleanly."
"I've selected his arm. Fix the shading, and don't touch anything else."
"Put this sketch on a reference layer and draw over it."
"Recreate this photo as 128-pixel-wide pixel art with 24 colours, then fix wherever it still differs."
"Make this a 384×128 banner, then animate it: wind in the grass, a glint on the armour, and fireflies."
"Split the knight from the meadow so I can recolour his armour."
"Swing his arm from the shoulder over 8 frames, with the forearm following."
"Make this grass tileable, then build an autotile set over dirt for my Godot project."
"Give me a night version with a lantern by the door, and a normal map for 2D lights."
"Paint a sunset sky with drifting clouds and snowy mountains, then turn the bottom third into a lake."
"Light a campfire on the shore with the embers blowing left."
"Light the camp from the fire, and give the knight a rim of sunset light."
"Export the banner as a GIF at 4x."
"Find stray pixels, then make red, blue, and winter versions of this sprite."
"What did you change, and how would I do that by hand in Aseprite?"
"Export this to my game."
Where this sits (honest positioning)
There are already good Aseprite MCP servers. This project is not the first, and doesn't claim to be. What it claims — and can defend:
Capability | Landscape | This project |
Draw / layers / frames / palette / selection / export, dithering, gradients, outlines, filters, tweens, tilemaps | Well covered by the headless leaders (diivi ~123 tools, pixel-mcp, ext-sakamoro) and the commercial live server (Aseprite MCP Pro, Godot-first) | Parity — a curated, fully typed surface |
One-action Unity export — sheet + | Every other Aseprite→Unity path we found is a separate engine-side importer; none export pivots | Differentiator ✅ |
Art-QA sweep incl. transparent sticker-padding measurement against your project conventions | We found no other server that lints sprite margins/padding as a packaged sweep | Differentiator ✅ |
Isometric drawing primitives (2:1 boxes/cylinders, auto face-shading, recessed panels) | The only iso primitives we've found in any Aseprite MCP we surveyed | Differentiator ✅ |
In-editor interaction: dialogs in Aseprite, ask-the-artist point picking, artist-edit watching, symmetry & viewport control | Live-GUI servers exist (Pro commercial; two nascent OSS); none we surveyed ship in-editor dialogs or human-in-the-loop tools | Differentiator ✅ |
Update awareness — the server itself tells you when a newer release exists | As far as we could find (checked 2026-07-16), no other MCP server surfaces its own update status through the session | Differentiator ✅ |
Live tilemap editing | The headless leaders edit tilemaps on disk; the only live tilemap editing we found is closed-source | Open-source position ✅ |
MCP resources + prompts | Across the open-source Aseprite MCPs we surveyed, this is the richest MCP-native surface (live-state resources + guided-workflow prompts) | Differentiator (hedged) |
Every edit made through the server is exactly one named undo step
(app.transaction) — you can watch an agent work and Ctrl-Z anything it did,
one step at a time. We verified the other open-source live bridges don't hold
that discipline across their surface (one wraps 3 of 57 tools).
Knowing when to update
The status tool reports the server's version and — at most once a day, via
PyPI — whether a newer release exists. Your agent sees it, so you see it:
{ "backend": "live", "connected": true,
"server": { "current": "0.2.0", "latest": "0.2.1", "update_available": true,
"how": "pip install -U aseprite-claude-connector" } }Also surfaced as the aseprite://update resource, one stderr log line, and the
real version in the MCP serverInfo handshake. Disable with
ASEPRITE_MCP_NO_UPDATE_CHECK=1 (auto-disabled in CI). No telemetry — the check
is an HTTP GET of PyPI's public JSON; nothing about you, your machine, or your
art is sent.
Tools (194)
Every tool is typed, annotated (readOnlyHint/destructiveHint/idempotentHint/openWorldHint), and — when it mutates — wrapped in a named app.transaction, so each edit is exactly one labeled undo step in the editor.
status— Report backend health plus this server's version and whether a newer release exists.get_sprite_info— Get the active sprite's size, color mode, and layer/frame/tag lists.describe_sprite— Summarize the active sprite in one call: size, color mode, the layer tree with visibility and blend modes, frame timing, tags, slices, palette, the selection, and what's active.get_pixel— Read one composited pixel (all layers) at (x, y) as #rrggbbaa.set_sprite_metadata— Attach typed key/value metadata to the sprite (Aseprite's Properties system — stored in the .aseprite file itself).get_sprite_metadata— Read the sprite's typed key/value metadata (Properties).get_pixels— Read a composited pixel region as a grid of #rrggbbaa strings — the AI feedback loop for 'what does the canvas look like now'.
look— See the canvas: returns a frame as an image, scaled up with sharp pixels.look_animation— See an animation: returns a tag or frame range as one image, frames left to right and top to bottom.look_onion— See motion: returnsframeas an image with earlier frames ghosted in red and later frames in blue, so the whole arc shows at once.
open_sprite— Open a sprite file and make it the active document; returns its filename, size, and frame/layer counts.save_sprite— Save the active sprite to disk: topathif given (save-as; the document's filename follows it), else to its own filename — errors if the sprite is untitled and nopathis given.close_sprite— Close the active sprite.set_active_sprite— Live editor only: make one of the open documents active, found by exact filename or basename match (e.g. "turret.aseprite").pin_sprite— Live editor only: choose the sprite Claude's edits go to.save_all_sprites— Live editor only: save open work intofolderas.asepritefiles, so nothing is lost when tabs are closed.list_sprites— Live editor only: list every open document — filename (or "(unsaved)"), size, frame/layer counts, tags, unsaved-changes flag, which one is active in the editor, and which one Claude's edits go to (pinned).
create_sprite— Create a new sprite.expand_canvas— Grow (or shrink, with negatives) the canvas per side WITHOUT scaling content — existing pixels keep their positions relative to the old origin.import_spritesheet— Slice a sheet PNG into animation frames: cells are read row-major at the given frame size onto a new "imported" layer, adding frames as needed.
add_layer— Add a new empty layer (optionally named) at the top of the stack.add_group— Add a layer group.move_layer_to_group— Move a layer inside a layer group.list_layers— The full layer tree, top of stack first: name, path, kind (image/group/tilemap), visibility, and opacity — including layers nested in groups (whichget_sprite_infolists only at the top level).delete_layer— Delete the layer with the given name.rename_layer— Rename a layer.set_layer_visibility— Show or hide a layer.set_layer_opacity— Set a layer's opacity (0-255).flatten_sprite— Flatten all layers into a single layer.set_layer_blend_mode— Set a layer's blend mode.duplicate_layer— Duplicate a layer (with its cels) above the original.merge_layer_down— Merge a layer into the layer directly beneath it.move_layer— Reorder a layer in the stack.import_image_as_layer— Import an external image file (PNG, etc.) into a new layer at (x, y) — a reference/trace layer for concept-art intake.
add_frame— Append a new empty frame.duplicate_frame— Duplicate framenumber(1-based).delete_frame— Delete framenumber(1-based).set_frame_duration— Set framenumber's duration in milliseconds.add_frames— Appendcountempty frames in one undo step.set_frame_durations— Set every frame in [from_frame..to_frame] tomsmilliseconds.reverse_frames— Reverse frame order (cels on every layer, plus durations) — the whole sprite by default, or the inclusive [from_frame..to_frame] range.set_onion_skin— Configure the editor's onion-skin view: on/off, ghost counts each direction, and whether ghosting stays inside the current tag.
clear_cel— Empty the cel at the given layer + frame (transparent).set_cel_position— Move the cel's top-left origin to (x, y).set_cel_opacity— Set the cel's opacity (0-255).
draw_pixels— Set individual pixels:pixelsis a list of{"x": int, "y": int, "color": "#rrggbb[aa]"}.draw_polyline— Stroke connected line segments throughpoints(ordered [x, y] pairs);close=Truejoins the last point back to the first.draw_rectangle— Draw a rectangle on the active layer + frame.draw_line— Draw a 1px line from (x1,y1) to (x2,y2).draw_circle— Draw a circle centered at (center_x, center_y).fill_area— Flood-fill the contiguous same-color region at (x, y).draw_ellipse— Draw an ellipse centered at (center_x, center_y) with independent x/y radii.draw_gradient— Fill a rectangle with a linear gradient fromcolor1tocolor2.apply_dither— Fill a rectangle with a uniform ordered (Bayer 4x4) dither mixingcolor1andcolor2.add_outline— Add a 1px outline around the opaque pixels of a layer, incolor— readability against busy backgrounds.
get_palette— Return the active sprite's palette as #rrggbbaa hex strings.set_palette_color— Set palette entryindextocolor(#rrggbb or #rrggbbaa).add_palette_color— Appendcolorto the palette and return its new index.set_palette— Replace the whole palette withcolors(list of #rrggbb/#rrggbbaa).apply_preset_palette— Replace the palette with a built-in preset: gameboy | pico8 | cga.generate_color_ramp— Generate a dark->light shading ramp frombase_colorand APPEND it to the palette in order — ready forpalette_ramp_walk.extract_palette_from_image— Extract a palette (median-cut) from an external image file and, by default, set it as the active sprite's palette — the concept-art → locked-palette step.sort_palette— Reorder palette swatches byluminance(default),hue, orsaturation.palette_from_sprite— Derive the palette FROM the sprite's actual pixels (Aseprite's color quantization) — the inverse ofquantize_to_palette.load_palette— Replace the sprite's palette from a palette file (.gpl, .pal, .ase, .png strip — anything Aseprite reads).save_palette— Write the sprite's palette to a file (.gpl, .pal, .png — by extension).apply_bundled_palette— Apply one of Aseprite's bundled extension palettes by resource ID — e.g. DB16, DB32, ARQ4, EDG16 (availability depends on the installed palette extensions).
replace_color— Replace every pixel matchingfrom_color(withintolerance, a 0-255 RGB distance) withto_coloracross the active cel, preserving each pixel's alpha unlessto_colorcarries its own.quantize_to_palette— Snap every opaque pixel of the active cel to its nearest color in the sprite's palette (alpha preserved) — enforce palette discipline after intake or shading.adjust_hsl— Shift the active cel's colors in HSL:hue_shiftdegrees (-360..360),saturationa multiplier (1.0 = unchanged),lightnessa delta (-1..1).get_color_stats— Return a color histogram of the composited sprite: distinct opaque color count, total opaque pixels, and thetopmost-used colors with counts — a palette-drift check for the art-QA loop.
apply_shading— Palette-constrained shading: brighten toward the light and darken away from it, snapping every pixel to the nearest palette color.palette_ramp_walk— Shade by WALKING the arranged palette ±N indices toward lighter/darker (per light direction), instead of snapping to the luminance-nearest color — so hand-ordered shading ramps are respected.
adjust_brightness_contrast— Adjust the active cel's brightness and contrast, each -100..100 (0 = unchanged).invert_colors— Invert the active cel's RGB (alpha untouched).desaturate— Convert the active cel to grayscale (Rec. 601 luma), keeping alpha.box_blur— Blur the active cel with an alpha-weighted box kernel.sharpen— Sharpen the active cel (unsharp mask over a 3x3 neighborhood).
paint_with_stamp— Stamp an image at each [x, y] inpoints(points are stamp centers).
draw_iso_box— Draw a 2:1 isometric box.draw_iso_cylinder— Draw a vertical isometric cylinder (tank/silo/chimney): top ellipse + shaded body + front rim, auto-shaded fromcolor.fill_polygon— Scanline-fill an arbitrary polygon givenpoints(a list of [x, y] pairs, in order).iso_recessed_panel— Draw a recessed docking socket/port on an isometric face — a light lit lip framing a dark recessed interior.
select_rectangle— Set a rectangular selection.select_all— Select the whole canvas.deselect— Clear the current selection.select_ellipse— Select an ellipse inscribed in the given rectangle.select_by_color— Select every pixel matchingcolor(composited, withintolerance0-255 per channel) — a global magic wand.invert_selection— Invert the current selection against the canvas bounds.get_selection— Report whether a selection exists and its bounding rectangle.erase_area— Erase pixels to transparent.
flip_sprite— Flip the whole sprite horizontally or vertically.resize_sprite— Scale the whole sprite to new pixel dimensions.crop_sprite— Crop the sprite to the given rectangle.rotate_sprite— Rotate the whole sprite by 90, 180, or 270 degrees clockwise (lossless).autocrop_sprite— Trim transparent borders: shrink the canvas to the union of visible content across all layers and frames (Sprite > Trim).set_color_mode— Convert the sprite between rgb | gray | indexed color modes.
create_slice— Create a named slice (atlas region) at the given rectangle.set_slice_pivot— Set a slice's pivot point, in pixels relative to the slice's top-left.set_slice_center— Set a slice's 9-patch stretchable center rectangle (relative to the slice).list_slices— List every slice with its bounds, pivot, and 9-patch center.delete_slice— Delete the slice with the given name.
create_tag— Create an animation tag namednamespanning framesfrom_frame..to_frame(1-based).delete_tag— Delete the animation tag namedname.list_tags— List animation tags with their frame ranges.rename_tag— Rename the animation tagold_nametonew_name.set_tag_color— Set the timeline label color of the tagname(#rrggbb or #rrggbbaa).set_tag_range— Move the tagnameto span framesfrom_frame..to_frame(1-based, inclusive; validated against the sprite's frame count).set_tag_direction— Set the playback direction of the tagname: forward | reverse | pingpong | pingpong_reverse.
create_tilemap_layer— Create a tilemap layer with its own tileset on a tile_width x tile_height grid.add_tile— Append an empty tile to a tilemap layer's tileset; returns the new tile's index and the tileset size.draw_on_tile— Set pixels on one tile of a tilemap layer's tileset.set_tiles— Place tile references on a tilemap layer's cel.get_tilemap_info— Read a tilemap layer: tile size, tileset length, and the cel's grid size, pixel position, and tile-index grid (tilesas rows of columns, flip flags stripped; capped at 64x64 withtruncatedset).export_tileset— Export a tilemap layer's tileset as a horizontal PNG strip (plus an Aseprite JSON atlas ifdata_pathis given).
tween_frames— Insertcountin-between frames betweenfrom_frameandto_framethat slide the start frame's art toward where the end frame's art sits, so it works for moved cels and for art redrawn in a new place.tween_cel_opacity— Fade a layer's cels across [from_frame..to_frame]: opacity interpolates fromfrom_opacitytoto_opacity(0-255) with the chosen easing.smear_frame— Append a motion-smear frame blendingfrom_frameandto_frame: overlapping pixels averaged, single-frame areas ghosted at half alpha — a pixel-content smear.frame_diff— Pixel-exact diff of two composited frames: changed-pixel count and ratio, the bounding box of the change, and whether they're identical.render_onion_composite— Write a PNG offramewith up toprevearlier frames ghosted in red andnextlater frames ghosted in blue (Aseprite's onion-skin convention) at the given ghostopacity— so you can see the motion arc in one image.
export_sprite— Export the active sprite to a file; format is chosen byout_pathextension (.png, .gif, ...).export_spritesheet— Pack all frames into a single sprite-sheet image (optionally writing a JSON atlas todata_path).export_layers— Export every image layer (recursing into groups) as its own PNG inout_dir, named<sanitized-layer-name>.png.export_tags— Export each animation tag's frame range as its own file inout_dir: an animated<tag-name>.gif(format="gif", default) or a horizontal<tag-name>.pngstrip (format="png").
export_unity_sprite— Export a horizontal sprite sheet AND write the Unity.metabeside it, pre-sliced into named Multiple-mode sprites (one per frame) — one action, no manual Sprite Editor pass.export_unity_slices— Export the sprite as a single PNG AND write a Unity.metawith one Multiple-mode sprite per named slice, each carrying that slice's pivot — so an atlas laid out with slices imports into Unity already sliced and pivoted.
measure_padding— Measure the transparent 'sticker' padding around the content: content bounding box, per-side padding (left/right/top/bottom), fill ratio, and distinct opaque color count.qa_sweep— Audit the active sprite against project conventions and return per-check pass/fail.
batch_export— Export every.asepriteinfolder(first frame) to an image, optionally integer-upscaled byscale.batch_resize— Resize every.asepriteinfolder(first frame, nearest-neighbor) and write images toout_dir.batch_apply_palette— Palette-lock every.asepriteinfolder: snap each sprite (first frame, alpha preserved) to a palette and export images toout_dir.
inbetween— Fill incountframes between the key pose onfrom_frameand the one on the next frame, then return a picture of the result.walk_cycle_template— Lay down a timed, tagged walk or run skeleton to draw over.apply_timing— Set frame durations from a preset, over a tag or a frame range (every frame by default).check_loop— Check whether an animation loops cleanly: compares its last frame with its first against the steps inside the loop.
animate_parts— Animate a character made of part layers like a cut-out puppet.
draw_eyes— Redraw a character's eyes, frame by frame, to give it an expression: where it looks, blinks, sleepy or angry lids, a smile.swing_part— Swing a wing, arm, tail or ear about its joint across frames.bob_body— Breathing, hops and sways: everything above the rowfeet_ymoves while the feet below it stay planted.lift_symbols— Move floating symbols ("!", "?", Zzz, hearts, sparkles) off a character's layer onto a new layer, and animate them there.check_consistency— Compare sprites of one character or set: the open sprites (live;onlypicks them by filename or tag), orfiles.match_palettes— Put sprites of one character or set on one shared palette: colours closer thantolerancethat stand in for each other (one sprite uses one, another sprite the other) merge into whichever is used most, across the open sprites (live; ``on
split_sheet— Cut a character sheet (poses in acolumnsxrowsgrid) into one pixel-art sprite per pose, all at the same scale and on ONE shared palette ofcolorscolours (orpalette), so the poses stay consistent with each other.pixelate_reference— Turn a reference picture into pixel art on a new layer: the faithful way to recreate a photo or painting.compare_to_reference— See how close the canvas is to a reference picture.
ambient_motion— Bring a still scene to life as a seamless loop.split_into_layers— Separate a picture into parts on their own layers, like armour and meadow, so each can be edited or animated alone.extend_scene— Grow the canvas byleft/right/top/bottompixels and fill the new space onlayer(the active one) by continuing its own texture, like turning a portrait scene into a wide banner.clean_pixel_art— Make pixelated or noisy art read as drawn: every patch of one colour smaller thanmin_regionpixels merges into the colour around it, if that colour is close (tolerance, 0-1; standout specks like flowers stay), andfirm_edgesda
paint_sky— Paint a sky behind the art:dawn,day,sunset, ornight, shaded in dithered bands from the top down to rowhorizon(the bottom edge by default).paint_mountains— Paint mountain ranges standing on rowhorizon: up to threeranges, the far one palest and hazy at its foot, the near one dark.add_fire— Light a fire with the middle of its base atx,y: flamesheightpixels tall that lick and sway, and embers that rise above them and lean withwind(pixels; negative blows left).reflect_in_water— Fill everything below rowhorizonwith water that mirrors what is above it.add_glow— Light the scene from a fire, lantern, or window atx,y: a pool ofcolorthat fades out byradiusin dithered steps, on a new layer that adds its light to what is under it.add_rim_light— Pick out the edge oflayerthat faces a light: a sunset behind a figure, a fire beside a tree.add_mist— Lay a band of mist across the scene, centred on rowyandthicknessrows deep: along a far shore, in a valley, over a marsh.
relight_scene— Show a scene at another time of day:dawn,noon,sunset, ornight.make_normal_map— Make a normal map so the art reacts to 2D lights in Godot and Unity: a torch moving past shades it.
make_seamless— Make a texture repeat with no visible edge, for ground, walls, or water tiles.make_autotiles— Build the 47-tile autotile set for one terrain (fill_layer, like grass) over another (base_layer, like dirt, or clear), so a map painter picks the right edge and corner for every neighbour.
find_stray_pixels— Find pixels and colors that look like accidents, and return a picture of them: the art in gray, with floatingisolatedpixels in red,orphanpixels (touching art but matching none of it) in yellow, and pixels of colors usedrarerecolor_variants— Recolor the sprite into team colors or seasons in one batch.
export_animation— Write the animation (or onetag) as a looping.gifor animated.pngatpath, scaled upscaletimes with sharp pixels (4 turns a 384x128 banner into 1536x512).clean_lines— Turn rough sketched strokes into clean pixel-art lines:thinbrings thick strokes down to one pixel, and the doubled corner pixels freehand lines leave are removed, as Aseprite's pixel-perfect brush would have drawn them.
export_godot— Export a horizontal sprite sheet AND a Godot 4SpriteFrames.tresbeside it, with one animation per tag, keeping each frame's timing, the tag's direction, and its repeat count.
export_to_game— Export the sprite into a game project in one action, ready to select in the engine.
export_gamemaker— Write sprite strips GameMaker cuts up by itself: one<name>_<tag>_stripN.pngper tag, or<name>_stripN.pngwith no tags.pack_atlas— Pack several sprites into one texture, with every frame of each, plus a JSON map in the hash layout of Aseprite's sprite-sheet export.
set_safety_rails— Set the safety rails for this session, or pass nothing to read them.edit_batch— Run several editing tools as one undo step, so one Ctrl-Z reverts them all.edit_in_selection— "Fix this bit": run editing tools so they change only what's inside the current selection, as one undo step.
add_reference_image— Put a sketch or reference on a faded, locked layer on top of the sprite, across every frame, and keep the active layer as it was, so drawing lands on the art.change_summary— A short list of what Claude changed this session, oldest first: each edit, how many times in a row, the frames and layers it touched, and pixels changed.explain_changes— Say which Aseprite tool, menu, or shortcut would do what Claude just did, so you pick up the technique.start_recording— Start recording this session: a picture of the active frame is kept after every edit, forstop_recordingto turn into a GIF timelapse.stop_recording— Stop recording and write the timelapse GIF toout_path.
search_api_docs— Search Aseprite's Lua scripting API reference, bundled with this server.search_manual— Search Aseprite's user manual: how features work in the editor, such as tilemaps, onion skinning, or slices.
select_frame— Make a frame active, so the next edits land on it.select_layer— Make a layer active, so the next edits land on it.undo— Undo the last edit on the active sprite (live editor).redo— Redo the last undone edit (live editor).
get_editor_state— Live editor only: current zoom, scroll, and which sprite pixel the mouse is over — lets an agent know what the artist is looking at.set_editor_view— Live editor only: set the viewport zoom (1.0 = 100%) and/or scroll — e.g. zoom to the region you're about to edit so the artist can watch.set_symmetry— Live editor only: set mirror-painting symmetry —modeisnone,horizontal(mirror across a vertical axis),vertical, orboth; optionally place the axis lines.ask_point— Live editor only: ask the ARTIST to click a point on the canvas (pivot, anchor, paint origin).get_asked_point— Poll the result ofask_point:donefalse while waiting, then the clickedx/y(orcancelledif the artist pressed Esc).cancel_ask_point— Withdraw a pendingask_pointrequest (e.g. the artist stepped away and you're moving on).show_choice_dialog— Live editor only: pop a small dialog IN Aseprite with a message and up to 4 option buttons (e.g. approve/redo).get_dialog_choice— Poll the result ofshow_choice_dialog:donefalse while the dialog is open, then the chosen button text.watch_changes— Live editor only: start counting edits the ARTIST makes to the active sprite (viaSprite.events).get_watched_changes— Poll the change counter started bywatch_changes(reset=Truezeroes it after reading).stop_watching_changes— Detach thewatch_changeslistener.
run_lua— Run arbitrary Lua inside Aseprite and return its result (advanced escape hatch — equivalent to local code execution).
Resources
Read editor state without spending a tool call:
aseprite://sprite/active— size, color mode, layer/frame/tag names of the active documentaseprite://palette/active— the active palette as hexaseprite://docs— every open document, including unsaved/untitled tabs (live)aseprite://qa/last— the most recentqa_sweep/measure_paddingresultaseprite://export/last— the most recent Unity export (files written + sprite manifest)aseprite://update— this server's version + whether a newer release exists
Prompts (guided workflows)
One-call "skills" that chain the tools into finished art tasks:
unity_qa_gate— run the ship-ready QA gate, then export a Unity sheet +.metaiso_building_to_spec— build a 2:1 isometric building from a footprint specshade_along_ramp— shade a sprite by walking its hand-ordered palette rampautoslice_to_unity— multi-frame sprite → Unity-import-ready sheet + pre-sliced.metaconcept_to_placeholder— external concept image → correctly-padded, in-palette placeholdertileset_and_map— author a tileset from a terrain spec, lay out the map, export the striplive_review_loop— wait for the artist to finish touching up, re-QA, ask for the ship call in-editorrecreate_picture— turn a photo or painting into pixel art, then refine it until it matchesmake_banner— turn a picture into a wide banner, keeping the subject and extending the sceneanimate_scene— bring a still scene to life as a seamless loop: wind, glints, water, particles
Limitations (honest ones)
Headless calls are separate Aseprite processes — editor-session state (selection, view, symmetry) doesn't persist between headless calls. Pixels, layers, frames, palettes, tilemaps, metadata: all persist (they're in the file).
The interactive tools need the live editor — dialogs, point picking, watching, viewport control error cleanly under
headless.Animated
.gifexport is headless-only. Saving.giffrom the live editor opens Aseprite's GIF-options dialog, which blocks the bridge until dismissed. Live, useexport_spritesheetstrips or per-frame PNGs; the animated GIFs in this README were exported headless from the same files.Windows is the primary dev platform. CI runs the unit + wire-validation suite on Linux/macOS/Windows, and the
Macworkflow compiles Aseprite on a Mac and runs setup and every tool against it headless. The live bridge in a running editor is hand-tested on Windows only, because its first connection needs a person to answer Aseprite's access prompt. Linux is expected to work, not proven.run_luais local code execution by design (it's the escape hatch). The relay binds to127.0.0.1only and refuses browsers. ReadSECURITY.md.Some live tools raise an Aseprite security prompt.
open_sprite,save_sprite,load_palette, and exports that write from Lua can, and the call times out if nobody answers. Importing pictures,pack_atlas, and exports built in Python don't.Engine imports aren't all proven. CI loads a real export in headless Godot, but nobody has opened the Unity or GameMaker output in those engines, and the Export to Game dialog hasn't been clicked through.
No generative art. This server draws what it's told with deterministic primitives; taste stays with the artist.
Verifying the surface
python tests/smoke_headless.py drives every tool (plus resources + prompts)
in-process against a throwaway sprite. python -m pytest runs the unit suite
plus wire-validation tests that exercise structured output through a real
MCP client session — the boundary users actually hit (pip install -e ".[dev]"
first). The README's tool list is generated from the code
(python scripts/gen_docs.py) and CI fails if it drifts. The Mac workflow compiles
Aseprite and runs setup and every tool against it, then has real Godot load an export
and paint with an autotile set. The Release check workflow installs each published
version from PyPI on Windows, Linux, and Mac and checks it runs. The Unity workflow
has real Unity import the exports and paint with the Rule Tile, once the repository
has a Unity licence (unity/README.md). To test the live
connection on a Mac without buying Aseprite, see
docs/MAC_TESTING.md.
Changelog & releases
See CHANGELOG.md — every release also lands as a GitHub Release
with the same notes. Versions follow semver (pre-1.0: minor bumps may change
tool behavior, patches are fixes).
About
The original project was built solo by Kyle Ocheltree (OakTree Games) for a real production pipeline — the Unity export, padding QA, and isometric tools exist because Cosmic Scale (an isometric factory game) needed them. Developed with an AI-native workflow: AI assists the coding; every tool is reviewed, tested against a real editor, and shipped deliberately.
Contributing
Issues and PRs welcome — see CONTRIBUTING.md. Run
ruff check ., pytest, and python tests/smoke_headless.py before submitting.
License
MIT — see LICENSE. © 2026 Kyle Ocheltree / OakTree Games.
Available Tools
194 toolsadd_fireA
Light a fire with the middle of its base at x, y: flames height
pixels tall that lick and sway, and embers that rise above them and lean with
wind (pixels; negative blows left). It loops seamlessly over the sprite's
frames, so give it 8 or more; with one frame it is a still. logs lays
crossed logs and a ring of stones, for a campfire; leave them off for a torch
or a brazier. palette is fire, blue, or green. It goes on a new
layer named layer on top. Follow with add_glow at the same place to
light what is round it. One undo step. Headless: pass file.
Inputs: x (required), y (required), file, logs, +5 more.
add_frameC
Append a new empty frame.
Inputs: file.
add_framesB
Append count empty frames in one undo step.
Inputs: count (required), file.
add_glowA
Light the scene from a fire, lantern, or window at x, y: a pool of
color that fades out by radius in dithered steps, on a new layer that
adds its light to what is under it. strength is 0-1. flicker (0-1)
makes the pool breathe as a seamless loop over every frame. on_layers are
the top-level layers the light lands on (the ground, a figure); open air round
them takes only air of it, so the sky behind a campfire stays dark. By
default it lights everything. The layer is named layer and goes on top. One
undo step. Headless: pass file.
Inputs: x (required), y (required), radius (required), air, +6 more.
add_groupB
Add a layer group. Move layers into it with move_layer_to_group;
reference nested layers anywhere by name or as Group/Layer.
Inputs: file, name.
add_layerC
Add a new empty layer (optionally named) at the top of the stack.
Inputs: file, name.
add_mistA
Lay a band of mist across the scene, centred on row y and thickness
rows deep: along a far shore, in a valley, over a marsh. It is thickest along
its middle and breaks up toward its edges, in a few see-through strengths of
color; density (0-1) is how much of the band it fills. drift is how
many pixels it travels over the sprite's frames (negative for leftward; try 1
a frame), as a seamless loop. Near sun_x the mist takes on warm, as
low sun lights it. It goes on a new layer named layer, just above the
layer named above (the water, say, to keep it behind a foreground), or on
top. One undo step. Headless: pass file.
Inputs: y (required), file, seed, warm, +7 more.
add_outlineA
Add a 1px outline around the opaque pixels of a layer, in color — readability
against busy backgrounds. selective true ignores color and darkens each
neighbouring pixel's own color instead, for a softer outline that follows the art
(RGB sprites). diagonal true also outlines diagonally (8-connected). layer
picks the layer, and all_frames outlines every cel on it rather than the
active one. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: file, color, layer, preview, +3 more. Returns: result
add_palette_colorB
Append color to the palette and return its new index.
Inputs: color (required), file.
add_reference_imageA
Put a sketch or reference on a faded, locked layer on top of the sprite, across
every frame, and keep the active layer as it was, so drawing lands on the art.
image_path is a file on disk; a picture pasted into chat needs saving first.
fit shrinks a larger image to the canvas. opacity is 0-255. Hide or delete
the layer when done. Saving to a flat format would merge it in, so hide it first.
One undo step. Headless: pass file.
Inputs: image_path (required), fit, file, opacity, +1 more.
add_rim_lightA
Pick out the edge of layer that faces a light: a sunset behind a figure,
a fire beside a tree. light is where the light is, [x, y], and may be
off the canvas for a far-off sun. Edge pixels facing it turn color;
width 2 adds a dithered second row mixed with the art's own colour. With
radius the light fades out that far from its source, for a fire. The rim
goes on a new layer named like "Knight (rim)" just above layer, so the art
is untouched and the light can be hidden or recoloured. Runs on every frame,
or the active one with all_frames false. One undo step. Headless: pass
file.
Inputs: layer (required), light (required), file, color, +3 more.
add_tileA
Append an empty tile to a tilemap layer's tileset; returns the new tile's
index and the tileset size. The first added tile is index 1 (tile 0 is the
reserved empty tile). One undo step. Headless: pass file.
Inputs: layer (required), file.
adjust_brightness_contrastA
Adjust the active cel's brightness and contrast, each -100..100
(0 = unchanged). Alpha is preserved. One undo step. Headless: pass file.
Inputs: file, contrast, brightness.
adjust_hslA
Shift the active cel's colors in HSL: hue_shift degrees (-360..360),
saturation a multiplier (1.0 = unchanged), lightness a delta (-1..1).
Useful for tint variants. One undo step. Headless: pass file.
Inputs: file, hue_shift, lightness, saturation.
ambient_motionA
Bring a still scene to life as a seamless loop. layer (the active layer
by default) is animated from from_frame over
frames frames of duration_ms: wind (pixels, try 1) sends gusts
rolling left to right, one per wavelength pixels; shimmer (pixels)
wobbles rows like water; glint (0-1) sweeps light across the bright pixels
once a loop. particles adds a layer of motes, snow, rain, or
embers. Animate each part on its own layer (see split_into_layers) so
armour can glint while grass blows. Frames are added as needed, copying the
others, and tagged tag. Check with check_loop. One undo step.
Headless: pass file.
Inputs: tag, file, seed, wind, +11 more.
animate_partsA
Animate a character made of part layers like a cut-out puppet. poses
are key poses: {"frame": 1, "part": "Arm", "angle": -20, "x": 0, "y": 1},
with angle in degrees clockwise and x/y a move in pixels; any
left out are 0. Frames between keys are filled in (easing is smooth
or linear), and with loop the last pose eases back to the first.
pivots maps a part to the [x, y] it turns about (a shoulder, a hip; its
middle by default). parents maps a part to the one it hangs from, so
{"Forearm": "Arm"} keeps the forearm on the arm. Each part is drawn from
its from_frame pixels, turned with RotSprite-style rotation so edges stay
crisp. Frames are added as needed and tagged tag. Check the result with
look_animation and check_loop. One undo step. Headless: pass
file.
Inputs: poses (required), frames (required), tag, file, +6 more.
apply_bundled_paletteA
Apply one of Aseprite's bundled extension palettes by resource ID —
e.g. DB16, DB32, ARQ4, EDG16 (availability depends on the installed
palette extensions). For gameboy/pico8/cga see apply_preset_palette.
One undo step.
Inputs: name (required), file.
apply_ditherA
Fill a rectangle with a uniform ordered (Bayer 4x4) dither mixing color1
and color2. density 0..1 is the fraction of color2 — 0.5 is an even
checker-style mix. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: x (required), y (required), width (required), color1 (required), +5 more. Returns: result
apply_preset_paletteB
Replace the palette with a built-in preset: gameboy | pico8 | cga.
Inputs: name (required), file.
apply_shadingA
Palette-constrained shading: brighten toward the light and darken away
from it, snapping every pixel to the nearest palette color. intensity
~0..1. RGB sprite only; one undo step. Headless: pass file.
Inputs: x (required), y (required), width (required), height (required), +3 more.
apply_timingA
Set frame durations from a preset, over a tag or a frame range (every frame by
default). ease_in starts slow and speeds up, ease_out slows to a stop,
ease_in_out does both, hold keeps the last frame on screen, and bounce
hangs at the middle and snaps through both ends. base_ms is the quickest frame
and strength how many times longer the slowest lasts. One undo step. Headless:
pass file.
Inputs: preset (required), tag, file, base_ms, +3 more.
ask_pointA
Live editor only: ask the ARTIST to click a point on the canvas
(pivot, anchor, paint origin). Returns immediately; call
get_asked_point to collect the click. Human-in-the-loop, in-editor.
Inputs: title.
autocrop_spriteA
Trim transparent borders: shrink the canvas to the union of visible
content across all layers and frames (Sprite > Trim). Errors if the
sprite is fully transparent. Returns the old and new size. One undo
step. Headless: pass file.
Inputs: file.
batch_apply_paletteA
Palette-lock every .aseprite in folder: snap each sprite (first frame,
alpha preserved) to a palette and export images to out_dir. Give a preset
(gameboy/pico8/cga) or an explicit palette list of #rrggbb. Non-destructive;
continues past per-file errors. Headless.
Inputs: folder (required), file, format, preset, +3 more.
batch_exportA
Export every .aseprite in folder (first frame) to an image, optionally
integer-upscaled by scale. Non-destructive: writes <name>.<format> to
out_dir (default = folder); never modifies the source. Continues past
per-file errors. Headless. (file is ignored — this operates on a folder.)
Inputs: folder (required), file, scale, format, +2 more.
batch_resizeA
Resize every .aseprite in folder (first frame, nearest-neighbor) and
write images to out_dir. Give either scale (multiplier) or explicit
width/height. Non-destructive; continues past per-file errors. Headless.
Inputs: folder (required), file, scale, width, +4 more.
bob_bodyB
Breathing, hops and sways: everything above the row feet_y moves while
the feet below it stay planted. Put feet_y at the top of the feet.
keys, one per frame (frames are made as needed): {"frame": 1, "dy": -1, "dx": 0, "ms": 160}; -1 rises a pixel (the legs stretch), +1 sinks.
Breathing is 0/-1; a hop -2..-4; a sway dx -1/+1. One undo step. Headless:
pass file.
Inputs: keys (required), feet_y (required), file, layer.
box_blurB
Blur the active cel with an alpha-weighted box kernel. radius 1-4
(1 = 3x3). Transparent neighbors don't darken edges. One undo step.
Inputs: file, radius.
cancel_ask_pointAIdempotent
Withdraw a pending ask_point request (e.g. the artist stepped
away and you're moving on).
Inputs: no named parameters.
change_summaryARead-only
A short list of what Claude changed this session, oldest first: each edit, how
many times in a row, the frames and layers it touched, and pixels changed. Repeats
on the same layer are merged. last limits it to the most recent edits. It
covers the most recent 500 edits since the server started, and frames are missing
for edits made with the pixel cap off, or that can't lose pixels.
Inputs: last.
check_consistencyARead-only
Compare sprites of one character or set: the open sprites (live; only
picks them by filename or tag), or files. Reports colours so close they should be one (the drift you get
from pixelating poses separately), the colours only one sprite uses, and how
tall the subject stands on frame 1 of each, so differences in scale show.
Close colours every sprite uses side by side are shading steps, not drift.
Poses lying down or crouching are shorter by nature. Fix colours with
match_palettes. Read-only.
Inputs: only, files, tolerance.
check_loopARead-only
Check whether an animation loops cleanly: compares its last frame with its
first against the steps inside the loop. verdict is smooth, jump,
duplicate (the last frame repeats the first, which stutters), static, or
pingpong, and seam_bbox says where a jump is, ready to crop with look.
Compares up to 12 steps from long animations. Read-only. Headless: pass
file.
Inputs: tag, file, to_frame, from_frame.
clean_linesA
Turn rough sketched strokes into clean pixel-art lines: thin brings
thick strokes down to one pixel, and the doubled corner pixels freehand lines
leave are removed, as Aseprite's pixel-perfect brush would have drawn them.
specks also clears pixels with no neighbour. Kept pixels keep their
colour. Use it on a line-art layer over transparency (layer, the active
one by default); one frame, or all_frames. One undo step. Headless: pass
file.
Inputs: file, thin, frame, layer, +2 more.
clean_pixel_artA
Make pixelated or noisy art read as drawn: every patch of one colour
smaller than min_region pixels merges into the colour around it, if that
colour is close (tolerance, 0-1; standout specks like flowers stay), and
firm_edges darkens the shadow side of strong edges with the art's own
darker shade. No new colours. layer defaults to the active one; one
frame, or all_frames. One undo step. Headless: pass file.
Inputs: file, frame, layer, tolerance, +3 more.
clear_celCDestructive
Empty the cel at the given layer + frame (transparent).
Inputs: file, frame, layer.
close_spriteADestructive
Close the active sprite. Errors if it has unsaved changes unless
force=true — save_sprite first, or force to discard them. Aimed at
the live editor (frees the tab); headless has no persistent session,
so there is nothing to close there.
Inputs: force.
compare_to_referenceARead-only
See how close the canvas is to a reference picture. Returns the reference
shrunk to the canvas size, the canvas, and a heatmap (red = most different)
side by side, plus scores out of 100: score per pixel, shape_score
with fine detail blurred away (composition, values, and colour masses), and
close_pixels (% that nearly match). worst_areas are the cells of a
grid x grid split that differ most, with both average colours and
whether the art is darker or lighter: fix those first. crop_* picks the
part of the reference the canvas shows. layer compares one layer; clear
pixels count as black. Headless: pass file.
Inputs: image_path (required), file, grid, frame, +6 more.
create_sliceA
Create a named slice (atlas region) at the given rectangle. Slices become
Unity sprites via export_unity_slices. One undo step. Headless: pass file.
Inputs: x (required), y (required), name (required), width (required), +2 more.
create_spriteA
Create a new sprite. Live: opens a new untitled sprite in the editor and
makes it the sprite Claude works on, even if the artist clicks another tab.
Headless: writes a new .aseprite to file (required).
color_mode is one of rgb | gray | indexed.
Inputs: width (required), height (required), file, color_mode.
create_tagC
Create an animation tag named name spanning frames from_frame..to_frame (1-based).
Inputs: name (required), to_frame (required), from_frame (required), file.
create_tilemap_layerA
Create a tilemap layer with its own tileset on a tile_width x tile_height
grid. The new tileset starts with only tile 0, the reserved empty tile — use
add_tile to append editable tiles. One undo step. Headless: pass file.
Inputs: name (required), tile_width (required), tile_height (required), file.
crop_spriteCDestructive
Crop the sprite to the given rectangle.
Inputs: x (required), y (required), width (required), height (required), +1 more.
delete_frameBDestructive
Delete frame number (1-based). Cannot delete the last frame.
Inputs: number (required), file.
delete_layerCDestructive
Delete the layer with the given name.
Inputs: name (required), file.
delete_sliceBDestructive
Delete the slice with the given name. One undo step. Headless: pass file.
Inputs: name (required), file.
delete_tagCDestructive
Delete the animation tag named name.
Inputs: name (required), file.
desaturateA
Convert the active cel to grayscale (Rec. 601 luma), keeping alpha.
One undo step. Headless: pass file.
Inputs: file.
describe_spriteARead-only
Summarize the active sprite in one call: size, color mode, the layer tree
with visibility and blend modes, frame timing, tags, slices, palette, the
selection, and what's active. Frame durations and palette colors stop at 64
entries; count always gives the full number.
Inputs: file.
deselectCIdempotent
Clear the current selection.
Inputs: file.
draw_circleA
Draw a circle centered at (center_x, center_y). fill true fills the
disk. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: color (required), radius (required), center_x (required), center_y (required), +3 more. Returns: result
draw_ellipseA
Draw an ellipse centered at (center_x, center_y) with independent x/y radii.
fill true fills it. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: color (required), center_x (required), center_y (required), radius_x (required), +4 more. Returns: result
draw_eyesA
Redraw a character's eyes, frame by frame, to give it an expression:
where it looks, blinks, sleepy or angry lids, a smile. eyes lists each
eye's socket, the area INSIDE its ring, in canvas pixels: {"x": 44, "y": 27.5, "rx": 6.5, "ry": 6.3}, optionally "pupil": [rx, ry] (about half
the socket by default), "look_scale" (0.7 for a far eye in a 3/4 view) and
"inner": "left"|"right" (the side toward the beak or nose, for brows).
Measure sockets with look first. keys, one per frame (frames are made
as needed): {"frame": 1, "look": [dx, dy], "lid": 0..1, "arc": 0..1, "brow": -0.6..0.6, "smile": 0..0.6, "closed": false, "ms": 120}. lid
lowers the upper lid; arc curves it (relaxed, happy); brow > 0 slants
it down toward the inner side (angry, focused), < 0 the other way (worried,
sad); smile pushes up a lower lid; closed shuts the eye. Expression is
easy to misread: when unsure, draw 3-4 options and ask. Colours come from the
eyes already there; pass the returned style back on every sprite of the
same character so all its eyes match. The area round each eye is repainted
in skin colour. One undo step. Headless: pass file.
Inputs: eyes (required), file, keys, layer, +1 more.
draw_gradientA
Fill a rectangle with a linear gradient from color1 to color2.
direction is horizontal | vertical | diagonal. dither true uses an
ordered Bayer dither between the two colors instead of blending RGB — the
palette-friendly way. With dither, bands above 1 steps through that
many solid colors and dithers only the seams, which reads far cleaner than one
dither across a tall area. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: x (required), y (required), width (required), color1 (required), +7 more. Returns: result
draw_iso_boxA
Draw a 2:1 isometric box. The footprint diamond is centered at
(center_x, center_y) with the given half_width (full tile width =
2×half_width), rising height px. Top/left/right faces are auto-shaded
from color (#rrggbb, light from top-left) with stroke + highlight.
Returns the top/SE/SW face corner polygons so you can attach recessed ports
or details. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: color (required), height (required), center_x (required), center_y (required), +3 more. Returns: result
draw_iso_cylinderA
Draw a vertical isometric cylinder (tank/silo/chimney): top ellipse +
shaded body + front rim, auto-shaded from color. top_y is the top of
the body. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: color (required), top_y (required), height (required), radius (required), +3 more. Returns: result
draw_lineA
Draw a 1px line from (x1,y1) to (x2,y2). One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +3 more. Returns: result
draw_on_tileA
Set pixels on one tile of a tilemap layer's tileset. pixels is a list
of {x, y, color} objects (color #rrggbb or #rrggbbaa; x/y relative to the
tile's top-left). Pixels outside the tile are skipped and counted. Every
placed instance of the tile updates. One undo step. Headless: pass file.
Inputs: layer (required), pixels (required), tile_index (required), file.
draw_pixelsA
Set individual pixels: pixels is a list of
{"x": int, "y": int, "color": "#rrggbb[aa]"}. The precision tool for
detail work — one undo step for the whole batch. Capped at 4096 pixels
per call. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: pixels (required), file, preview. Returns: result
draw_polylineA
Stroke connected line segments through points (ordered [x, y]
pairs); close=True joins the last point back to the first. One undo
step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: color (required), points (required), file, close, +1 more. Returns: result
draw_rectangleA
Draw a rectangle on the active layer + frame. color is #rrggbb or
#rrggbbaa. fill false draws only the outline. One undo step (live).
Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: x (required), y (required), color (required), width (required), +4 more. Returns: result
duplicate_frameC
Duplicate frame number (1-based).
Inputs: number (required), file.
duplicate_layerB
Duplicate a layer (with its cels) above the original.
Inputs: name (required), file.
edit_batchA
Run several editing tools as one undo step, so one Ctrl-Z reverts them all.
Each step is {"tool": "draw_line", "args": {...}}, in order. If any step
fails, none of them apply. The pixel cap covers the whole batch. Steps can't
see each other's results, and tools that save or export can't be batched.
Headless: pass file here, not in the steps.
Inputs: steps (required), file, label.
edit_in_selectionA
"Fix this bit": run editing tools so they change only what's inside the current
selection, as one undo step. Anything they'd do outside it, on any layer or frame,
is put back. Steps are written as in edit_batch. Select the area in Aseprite
first; look with selection shows what's selected. Steps can't change the
frames, layers, or canvas size. Headless: pass file here, not in the steps.
Inputs: steps (required), file, label.
erase_areaADestructive
Erase pixels to transparent. Pass an explicit rect (works everywhere, including headless), or pass nothing to erase the current selection — including non-rectangular ones (live editor). One undo step.
Inputs: x, y, file, width, +1 more.
expand_canvasA
Grow (or shrink, with negatives) the canvas per side WITHOUT scaling
content — existing pixels keep their positions relative to the old
origin. One undo step. Headless: pass file.
Inputs: top, file, left, right, +1 more.
explain_changesARead-only
Say which Aseprite tool, menu, or shortcut would do what Claude just did, so you
pick up the technique. Covers the last most recent edits, newest repeats
merged. Shortcuts are Aseprite's defaults.
Inputs: last.
export_animationA
Write the animation (or one tag) as a looping .gif or animated
.png at path, scaled up scale times with sharp pixels (4 turns a
384x128 banner into 1536x512). Each frame keeps its own duration. An animated
PNG keeps transparency; a GIF is laid on background (#rrggbb, black by
default), as are both when it's given. Written from Python, so the live
editor shows no security prompt. Headless: pass file.
Inputs: path (required), tag, file, scale, +1 more.
export_gamemakerA
Write sprite strips GameMaker cuts up by itself: one
<name>_<tag>_stripN.png per tag, or <name>_stripN.png with no tags. Drag
them into GameMaker, or import them in its sprite editor. GameMaker gives a sprite
one speed, so the result lists each strip's fps to enter there, and flags
uneven timing. Headless: pass file.
Inputs: output_dir (required), file, name.
export_godotA
Export a horizontal sprite sheet AND a Godot 4 SpriteFrames .tres
beside it, with one animation per tag, keeping each frame's timing, the tag's
direction, and its repeat count. No tags gives one looping default
animation. Export inside a Godot project and the res:// path is worked out
from project.godot; otherwise project_found is false and the file must
sit at the project root. For sharp pixels, set the node's Texture Filter to
Nearest. Headless: pass file.
Inputs: png_path (required), file.
export_layersA
Export every image layer (recursing into groups) as its own PNG in
out_dir, named <sanitized-layer-name>.png. Hidden layers are
exported too; every layer's original visibility is restored afterwards,
so the document ends exactly as it started. A multi-frame sprite splits
each layer into <name>1.png, <name>2.png, ...; the returned
files lists what was actually written. Headless: pass file.
Inputs: out_dir (required), file.
export_spriteA
Export the active sprite to a file; format is chosen by out_path
extension (.png, .gif, ...). A multi-frame sprite saved to a single-image
format is split into <name>1.ext, <name>2.ext, ...; a multi-frame
sprite saved to .gif becomes one animated GIF (all frames, honoring
per-frame durations). The returned files lists what was actually
written. Does not modify the sprite. Headless: pass file.
Inputs: out_path (required), file.
export_spritesheetA
Pack all frames into a single sprite-sheet image (optionally writing a
JSON atlas to data_path). sheet_type is rows | columns | horizontal
| vertical | packed. Does not modify the sprite. Headless: pass file.
Inputs: out_path (required), file, data_path, sheet_type.
export_tagsA
Export each animation tag's frame range as its own file in
out_dir: an animated <tag-name>.gif (format="gif", default) or a
horizontal <tag-name>.png strip (format="png"). Errors if the sprite
has no tags. Returns each tag's file, frame range, and frame count.
Does not modify the sprite. Headless: pass file.
Inputs: out_dir (required), file, format.
export_tilesetA
Export a tilemap layer's tileset as a horizontal PNG strip (plus an
Aseprite JSON atlas if data_path is given). The strip includes tile 0
(the empty tile) first, so tile index i sits at x = i * tile_width. Writes
files but does not modify the sprite (it does make the layer active).
Headless: pass file.
Inputs: layer (required), output_path (required), file, data_path.
export_to_gameA
Export the sprite into a game project in one action, ready to select in the
engine. game_dir is the project folder; it's remembered, so leave it out
after the first time. Godot is detected from project.godot, Unity from
Assets plus ProjectSettings, and any other folder gets a plain sheet.
Art goes in the project's existing sprites or assets folder, or a new
sprites (Assets/Sprites in Unity). Godot gets a PNG, plus a
SpriteFrames .tres if animated. Unity gets a PNG and a pre-sliced
.meta, using pixels_per_unit, and exporting again keeps the references
to it working. name defaults to the sprite's file name. Headless: pass
file.
Inputs: file, name, game_dir, pixels_per_unit.
export_unity_slicesB
Export the sprite as a single PNG AND write a Unity .meta with one
Multiple-mode sprite per named slice, each carrying that slice's pivot —
so an atlas laid out with slices imports into Unity already sliced and
pivoted. No competitor's Aseprite→Unity path exports pivots. Requires slices
(see create_slice / set_slice_pivot). Headless: pass file.
Inputs: png_path (required), file, pixels_per_unit. Returns: png, guid, meta, mode, +8 more
export_unity_spriteA
Export a horizontal sprite sheet AND write the Unity .meta beside it,
pre-sliced into named Multiple-mode sprites (one per frame) — one action, no
manual Sprite Editor pass. alignment is one of center, top_left, top,
top_right, left, right, bottom_left, bottom, bottom_right, custom; custom
uses pivot_x/pivot_y (0..1, 0,0 = bottom left). Targets Unity 2021.3+/6.
Headless: pass file.
Inputs: png_path (required), file, pivot_x, pivot_y, +2 more. Returns: png, guid, meta, mode, +8 more
extend_sceneA
Grow the canvas by left/right/top/bottom pixels and fill the
new space on layer (the active one) by continuing its own texture, like
turning a portrait scene into a wide banner. Patches of patch pixels are
copied from the sample_* area (all of the layer by default) and matched
to what is already beside them, so no new colours appear. Pick a sample of
pure background, like open meadow, so the subject isn't copied, and big
enough not to repeat. The margins come from frame and are shared by the
layer's other frames. Other layers just get a bigger canvas. One undo step. Headless: pass file.
Inputs: top, file, left, seed, +9 more.
extract_palette_from_imageA
Extract a palette (median-cut) from an external image file and, by default,
set it as the active sprite's palette — the concept-art → locked-palette step.
Returns the colors as hex, sorted dark→light. Headless: pass file.
Inputs: image_path (required), file, replace, max_colors.
fill_areaA
Flood-fill the contiguous same-color region at (x, y). Most reliable on
RGB sprites. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: x (required), y (required), color (required), file, +1 more. Returns: result
fill_polygonA
Scanline-fill an arbitrary polygon given points (a list of [x, y]
pairs, in order). color is #rrggbb or #rrggbbaa. One undo step.
Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: color (required), points (required), file, preview. Returns: result
find_stray_pixelsARead-only
Find pixels and colors that look like accidents, and return a picture of
them: the art in gray, with floating isolated pixels in red, orphan
pixels (touching art but matching none of it) in yellow, and pixels of colors
used rare times or fewer in magenta. Also lists near_duplicates: colors
within near of a much commoner one. Dithering and highlights can be
deliberate orphans, so treat this as a list to look over, not to erase. Defaults
to the active frame, all visible layers. Read-only. Headless: pass file.
Inputs: file, near, rare, frame, +2 more.
flatten_spriteCDestructive
Flatten all layers into a single layer.
Inputs: file.
flip_spriteC
Flip the whole sprite horizontally or vertically.
Inputs: direction (required), file.
frame_diffARead-only
Pixel-exact diff of two composited frames: changed-pixel count and ratio,
the bounding box of the change, and whether they're identical. Use it to
verify an animation actually moves — or that an edit didn't leak into
frames it shouldn't touch. Headless: pass file.
Inputs: frame_a (required), frame_b (required), file.
generate_color_rampA
Generate a dark->light shading ramp from base_color and APPEND it to the
palette in order — ready for palette_ramp_walk. count colors;
hue_shift pushes shadows toward blue and highlights toward yellow. Returns
the ramp as hex. One undo step. Headless: pass file.
Inputs: base_color (required), file, count, hue_shift.
get_asked_pointARead-only
Poll the result of ask_point: done false while waiting, then
the clicked x/y (or cancelled if the artist pressed Esc).
Inputs: no named parameters.
get_color_statsARead-only
Return a color histogram of the composited sprite: distinct opaque color
count, total opaque pixels, and the top most-used colors with counts —
a palette-drift check for the art-QA loop. Read-only. Headless: pass file.
Inputs: top, file.
get_dialog_choiceARead-only
Poll the result of show_choice_dialog: done false while the
dialog is open, then the chosen button text.
Inputs: no named parameters.
get_editor_stateARead-only
Live editor only: current zoom, scroll, and which sprite pixel the mouse is over — lets an agent know what the artist is looking at.
Inputs: no named parameters.
get_paletteBRead-only
Return the active sprite's palette as #rrggbbaa hex strings.
Inputs: file.
get_pixelBRead-only
Read one composited pixel (all layers) at (x, y) as #rrggbbaa.
Inputs: x (required), y (required), file.
get_pixelsARead-only
Read a composited pixel region as a grid of #rrggbbaa strings — the AI feedback loop for 'what does the canvas look like now'. Capped at 4096 px; use a smaller region or export for larger areas.
Inputs: x (required), y (required), width (required), height (required), +1 more.
get_selectionARead-only
Report whether a selection exists and its bounding rectangle. (Selection is editor-session state — in headless mode it doesn't persist between calls, so this is mainly a live-editor tool.)
Inputs: file.
get_sprite_infoARead-only
Get the active sprite's size, color mode, and layer/frame/tag lists.
Headless: pass file (the .aseprite to inspect).
Inputs: file. Returns: tags, width, frames, height, +3 more
get_sprite_metadataBRead-only
Read the sprite's typed key/value metadata (Properties).
Inputs: file.
get_tilemap_infoBRead-only
Read a tilemap layer: tile size, tileset length, and the cel's grid size,
pixel position, and tile-index grid (tiles as rows of columns, flip flags
stripped; capped at 64x64 with truncated set). Read-only. Headless: pass
file.
Inputs: layer (required), file, frame.
get_watched_changesARead-only
Poll the change counter started by watch_changes (reset=True
zeroes it after reading).
Inputs: reset.
import_image_as_layerB
Import an external image file (PNG, etc.) into a new layer at (x, y) — a
reference/trace layer for concept-art intake. One undo step. Headless: pass
file.
Inputs: image_path (required), x, y, file, +1 more.
import_spritesheetA
Slice a sheet PNG into animation frames: cells are read row-major at
the given frame size onto a new "imported" layer, adding frames as
needed. The sheet's dimensions must be exact multiples of the frame
size. One undo step. Headless: pass file (the target sprite).
Inputs: sheet_path (required), frame_width (required), frame_height (required), file.
inbetweenA
Fill in count frames between the key pose on from_frame and the one on
the next frame, then return a picture of the result. Unlike tween_frames it
handles a pose that changes shape: both poses slide toward each other and trade
pixels through an ordered dither, so no new colors appear. smear makes the
middle frame hold both poses at once, for fast moves. Other layers hold still.
It's a first pass to draw over, not finished art. easing: linear, ease_in,
ease_out, or smoothstep. One undo step. Headless: pass file.
Inputs: from_frame (required), file, count, layer, +3 more.
invert_colorsB
Invert the active cel's RGB (alpha untouched). One undo step.
Inputs: file.
invert_selectionC
Invert the current selection against the canvas bounds.
Inputs: file.
iso_recessed_panelA
Draw a recessed docking socket/port on an isometric face — a light lit
lip framing a dark recessed interior. points = the 4 corner [x, y] pairs
of a face (e.g. the face_se returned by draw_iso_box). This is the
consistent I/O-port style. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: points (required), file, preview. Returns: result
lift_symbolsA
Move floating symbols ("!", "?", Zzz, hearts, sparkles) off a character's
layer onto a new layer, and animate them there. boxes are [x, y, w, h]
round each symbol (or group); only pixels not joined to the body are taken,
so a box can overlap a wing. They're found on from_frame and erased from
every frame of layer. keys, one per frame (frames are made as
needed): {"frame": 2, "symbols": [[dx, dy], null], "ms": 100}, an offset
per box, or null to hide it. Frames without a key show them in place. One
undo step. Headless: pass file.
Inputs: boxes (required), file, keys, name, +2 more.
list_layersARead-only
The full layer tree, top of stack first: name, path, kind
(image/group/tilemap), visibility, and opacity — including layers nested
in groups (which get_sprite_info lists only at the top level).
Inputs: file.
list_slicesARead-only
List every slice with its bounds, pivot, and 9-patch center. Read-only.
Headless: pass file.
Inputs: file.
list_spritesARead-only
Live editor only: list every open document — filename (or
"(unsaved)"), size, frame/layer counts, tags, unsaved-changes flag, which
one is active in the editor, and which one Claude's edits go to
(pinned).
Inputs: no named parameters.
list_tagsBRead-only
List animation tags with their frame ranges.
Inputs: file.
load_paletteB
Replace the sprite's palette from a palette file (.gpl, .pal, .ase, .png strip — anything Aseprite reads). One undo step.
Inputs: path (required), file.
lookARead-only
See the canvas: returns a frame as an image, scaled up with sharp pixels.
Defaults to the active frame with all visible layers. layer shows one
layer or group alone (even if hidden). x/y/width/height crop
to a region, and selection crops to the current selection. scale is
an integer zoom (1-32); omit it to fit max_size. background is
checker, transparent, or a #rrggbb color. Prefer a crop when you only
need part of the canvas: images use up conversation space. Headless: pass
file.
Inputs: x, y, file, frame, +7 more.
look_animationARead-only
See an animation: returns a tag or frame range as one image, frames left
to right and top to bottom. Defaults to every frame, capped at 64. A range of
up to 6 frames is a strip and longer ones are a grid, unless columns is
set. The result lists each cell's frame and duration. layer, scale,
max_size, and background work as in look. Headless: pass
file.
Inputs: tag, file, layer, scale, +5 more.
look_onionBRead-only
See motion: returns frame as an image with earlier frames ghosted in
red and later frames in blue, so the whole arc shows at once. Defaults to the
active frame. The picture form of render_onion_composite. Headless: pass
file.
Inputs: file, next, prev, frame, +4 more.
make_autotilesA
Build the 47-tile autotile set for one terrain (fill_layer, like
grass) over another (base_layer, like dirt, or clear), so a map painter
picks the right edge and corner for every neighbour. Both textures come from
the top-left size square of their layer, so make_seamless them first.
edge is how far the fill stops from an open side, and outline gives
its border a darker shade of its own colours.
Writes name.png. With game_dir (or the remembered game folder, if
out_dir isn't given), a Godot project also gets name.tres, a TileSet
whose terrain paints the set, and a Unity project gets the sheet sliced into
tiles plus name_rule.asset, a Rule Tile (needs the 2D Tilemap Extras
package). out_dir writes the PNG and a JSON map of each tile's
neighbours. Returns a picture of the set. Headless: pass file.
Inputs: name (required), size (required), fill_layer (required), edge, +6 more.
make_normal_mapA
Make a normal map so the art reacts to 2D lights in Godot and Unity: a torch
moving past shades it. Forms round off over bevel pixels from their
outline, detail (0-1) lets bright areas stand forward, and strength
steepens it all. It goes on a hidden "Normal map" layer, and save_path
also writes it as a PNG strip matching an exported sprite sheet (frames side
by side). In Godot, set it as the normal map of a CanvasTexture whose diffuse
is the sprite; in Unity, add it to the sprite's Secondary Textures as
_NormalMap. Made from layer, or everything visible by default.
One undo step. Headless: pass file.
Inputs: file, bevel, layer, detail, +3 more.
make_seamlessA
Make a texture repeat with no visible edge, for ground, walls, or water
tiles. The layer (the active one by default) fills the canvas: it is shifted
by half so its old edges meet in the middle, and that cross, band pixels
wide (an eighth of the size by default), is rebuilt from patch-sized
pieces of the texture itself. Check it with look after
expand_canvas or by exporting a few side by side. One undo step.
Headless: pass file.
Inputs: band, file, seed, frame, +2 more.
match_palettesA
Put sprites of one character or set on one shared palette: colours closer
than tolerance that stand in for each other (one sprite uses one, another
sprite the other) merge into whichever is used most, across the open
sprites (live; only picks them by filename or tag) or files. Alpha is kept. One undo step per sprite. Check
first with check_consistency.
Inputs: only, files, tolerance.
measure_paddingARead-only
Measure the transparent 'sticker' padding around the content: content
bounding box, per-side padding (left/right/top/bottom), fill ratio, and
distinct opaque color count. Read-only. Headless: pass file.
Inputs: file. Returns: empty, canvas, content, padding, +2 more
merge_layer_downCDestructive
Merge a layer into the layer directly beneath it.
Inputs: name (required), file.
move_layerB
Reorder a layer in the stack. direction is up | down | top | bottom
(bottom = stack index 1).
Inputs: name (required), direction (required), file.
move_layer_to_groupC
Move a layer inside a layer group.
Inputs: group (required), layer (required), file.
open_spriteA
Open a sprite file and make it the active document; returns its
filename, size, and frame/layer counts. Live: opens a new tab in the
editor and makes it the sprite Claude works on. Headless: each call is a fresh process, so this is a
"can Aseprite read this file" probe returning the file's info — to
edit a file headless, pass it as the file argument of the editing
tools instead.
Inputs: path (required).
pack_atlasB
Pack several sprites into one texture, with every frame of each, plus a JSON
map in the hash layout of Aseprite's sprite-sheet export. Frames that repeat
exactly share pixels. sprites are files on disk or, live, the file names of
open sprites; unsaved sprites can't be named. The JSON goes beside the PNG unless
out_json says otherwise, and frames are keyed <sprite> <index>.
Inputs: out_png (required), sprites (required), padding, out_json.
paint_mountainsA
Paint mountain ranges standing on row horizon: up to three ranges,
the far one palest and hazy at its foot, the near one dark. time is
dawn, day, sunset, or night, matching paint_sky. The
tallest peak reaches size (0-1) of the way up from the horizon. With
sun at [x, y], faces toward it are lit and the ranges dip there so it
shows between them; without it the light comes from the right. snow caps
the far range and trees puts a treeline on the nearest. seed changes
the shapes. They go on a new layer named layer just above the layer named
above (the sky), or at the bottom if there is none. Follow with
reflect_in_water. One undo step. Headless: pass file.
Inputs: horizon (required), sun, file, seed, +7 more.
paint_skyA
Paint a sky behind the art: dawn, day, sunset, or night,
shaded in dithered bands from the top down to row horizon (the bottom edge
by default). sun is [x, y] for the sun or moon: the sky glows round it
and the clouds are lit from its side. clouds is how much they cover (0-1, 0
for none) and stars how many show (0-1; each time has its own default).
seed changes the cloud shapes. drift is how many pixels the clouds
travel over the sprite's frames (negative for leftward; try 1 per frame): they
then go on their own "Clouds" layer and loop seamlessly. The sky goes on a new
layer named layer at the bottom of the stack, on every frame. Follow with
paint_mountains and reflect_in_water for a lake. One undo step.
Headless: pass file.
Inputs: sun, file, seed, time, +5 more.
paint_with_stampA
Stamp an image at each [x, y] in points (points are stamp centers).
The stamp comes from source_path (a PNG) or source_rect
([x, y, width, height] cut from the composited sprite). One undo step
for the whole scatter. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Inputs: points (required), file, layer, preview, +2 more. Returns: result
palette_from_spriteA
Derive the palette FROM the sprite's actual pixels (Aseprite's color
quantization) — the inverse of quantize_to_palette. Returns the new
palette as hex. One undo step.
Inputs: file, max_colors.
palette_ramp_walkB
Shade by WALKING the arranged palette ±N indices toward lighter/darker
(per light direction), instead of snapping to the luminance-nearest color —
so hand-ordered shading ramps are respected. steps = max indices to walk
at the fully-lit/shadowed edges. RGB sprite with an ordered ramp palette;
one undo step. Headless: pass file.
Inputs: x (required), y (required), width (required), height (required), +3 more.
pin_spriteAIdempotent
Live editor only: choose the sprite Claude's edits go to. Every tool then
works on it even while the artist looks at another tab. Pick it by
filename (full path or basename), by a tag it has (the way to tell
unsaved sprites apart), or give neither to pin the sprite the artist has open
now ("work on this one"). unpin goes back to following whichever sprite
is active. Sprites Claude creates or opens are pinned on their own.
Inputs: tag, unpin, filename.
pixelate_referenceA
Turn a reference picture into pixel art on a new layer: the faithful way to
recreate a photo or painting. The picture (or the crop_* part of it, in
its own pixels) is shrunk to width x height by averaging, so each
pixel is the true colour of that area. height defaults to the picture's
aspect. It is then snapped to colors colours chosen from the picture, or
to palette (#rrggbb list) to match an existing one. dither is
none, ordered, or diffusion. despeckle removes lone noise
pixels. remove_background clears a white sheet or flat backdrop (and the
light fringe it leaves), before the palette is chosen so no colours are spent
on it. clear_edges drops bits of neighbouring art a crop catches at its
edges, keeping the subject and anything floating clear of the edges. To cut
every pose out of a character sheet at once, use split_sheet. Refine the
result by hand, and check it with compare_to_reference. One undo step.
Headless: pass file.
Inputs: width (required), image_path (required), x, y, +13 more.
qa_sweepARead-only
Audit the active sprite against project conventions and return per-check
pass/fail. Any rule you pass is checked: exact canvas size
(expected_width/expected_height), grid_multiple (canvas dims
divisible by N), max_colors (distinct opaque colors ≤ N), and
require_symmetric_padding (equal left/right + top/bottom margins).
Read-only. Headless: pass file.
Inputs: file, max_colors, grid_multiple, expected_width, +2 more. Returns: checks, failed, passed, measurements
quantize_to_paletteA
Snap every opaque pixel of the active cel to its nearest color in the
sprite's palette (alpha preserved) — enforce palette discipline after intake
or shading. RGB sprite; one undo step. Headless: pass file.
Inputs: file.
recolor_variantsA
Recolor the sprite into team colors or seasons in one batch. variants maps
each variant's name to a color swap, like {"red": {"#3050c0": "#c03030"}, "green": {"#3050c0": "#30a040"}}. Writes one strip <name>_<variant>.png per
variant into output_dir, frames left to right, and returns a picture comparing
them. Colors must match exactly, and any that were never found are listed in
unmatched. Leaves the sprite untouched. tag limits it to one animation.
Headless: pass file.
Inputs: variants (required), output_dir (required), tag, file, +1 more.
redoC
Redo the last undone edit (live editor).
Inputs: file.
reflect_in_waterA
Fill everything below row horizon with water that mirrors what is above
it. The reflection ripples more the nearer it comes (ripple, 0 for a still
mirror) and sinks into tint with depth (0-1). With more than one frame
the ripples move as a seamless loop over all of them, and anything animated
above is reflected frame by frame. sun_x lays a broken path of light down
the water under the sun. layers are the top-level layers to reflect (the
sky, hills, a castle); the water goes just above them, so a foreground kept
on higher layers stays in front and out of the reflection. By default
everything visible is reflected and the water goes on top. It is a new layer
named layer. One undo step. Headless: pass file.
Inputs: horizon (required), file, tint, depth, +4 more.
relight_sceneA
Show a scene at another time of day: dawn, noon, sunset, or
night. Each colour's lightness, warmth, and saturation shift the way that
light would, and each maps to one new colour, so the colour count stays the
same. glows are lanterns or windows, [[x, y, radius], ...], whose
pools stay warm and lit. strength (0-1) blends toward the original.
Works on layers (every visible image layer by default), writing a copy
named like "Ground (night)" above each and hiding the original, so switching
back is a visibility toggle. One undo step. Headless: pass file.
Inputs: time (required), file, glows, layers, +2 more.
rename_layerCIdempotent
Rename a layer.
Inputs: new_name (required), old_name (required), file.
rename_tagAIdempotent
Rename the animation tag old_name to new_name. One undo step.
Headless: pass file.
Inputs: new_name (required), old_name (required), file.
render_onion_compositeA
Write a PNG of frame with up to prev earlier frames ghosted in
red and next later frames ghosted in blue (Aseprite's onion-skin
convention) at the given ghost opacity — so you can see the motion
arc in one image. Does not modify the sprite. Headless: pass file.
Inputs: frame (required), output_path (required), file, next, +2 more.
replace_colorA
Replace every pixel matching from_color (within tolerance, a 0-255
RGB distance) with to_color across the active cel, preserving each pixel's
alpha unless to_color carries its own. One undo step. Headless: pass file.
Inputs: to_color (required), from_color (required), file, tolerance.
resize_spriteC
Scale the whole sprite to new pixel dimensions.
Inputs: width (required), height (required), file.
reverse_framesA
Reverse frame order (cels on every layer, plus durations) — the whole sprite by default, or the inclusive [from_frame..to_frame] range. One undo step.
Inputs: file, to_frame, from_frame.
rotate_spriteA
Rotate the whole sprite by 90, 180, or 270 degrees clockwise (lossless).
One undo step. Headless: pass file.
Inputs: degrees (required), file.
run_luaADestructive
Run arbitrary Lua inside Aseprite and return its result (advanced escape
hatch — equivalent to local code execution). J(value) is available for
JSON returns; wrap your own edits in app.transaction for clean undo.
The prelude also provides editCel(fn) and findLayer(s, name). Set
save=true (headless) to persist changes to file. Your code must
return a value. Set edit=true when the code only edits the active
sprite: it then runs as one undo step, under the pixel cap and dry run. Without
edit the rails don't apply, and in a dry run this tool refuses to run.
Inputs: code (required), edit, file, save.
save_all_spritesA
Live editor only: save open work into folder as .aseprite files, so
nothing is lost when tabs are closed. Unsaved sprites are saved there and
become those files (named after their first tag); sprites that already have
a file and unsaved changes are COPIED there, leaving their own file
untouched. all_sprites copies unchanged ones too. only limits it to
sprites with these filenames or tags. Never overwrites: a taken name gets a
number.
Inputs: folder (required), only, all_sprites.
save_paletteB
Write the sprite's palette to a file (.gpl, .pal, .png — by extension).
Inputs: path (required), file.
save_spriteA
Save the active sprite to disk: to path if given (save-as; the
document's filename follows it), else to its own filename — errors if
the sprite is untitled and no path is given. Live: persists the
edits sitting in the open editor. Headless: mutating tools already
save to file on their own; use this with both arguments to write a
copy of file under a new path (the source file on disk stays
untouched).
Inputs: file, path.
search_api_docsARead-only
Search Aseprite's Lua scripting API reference, bundled with this server.
Use it before writing run_lua code, for a class, method, or property such
as Image:drawImage or selection bounds.
Inputs: query (required), limit.
search_manualARead-only
Search Aseprite's user manual: how features work in the editor, such as tilemaps, onion skinning, or slices. The first search downloads the manual from GitHub to your cache, then it refreshes every 30 days.
Inputs: query (required), limit.
select_allCIdempotent
Select the whole canvas.
Inputs: file.
select_by_colorBIdempotent
Select every pixel matching color (composited, within
tolerance 0-255 per channel) — a global magic wand. mode is
replace/add/subtract.
Inputs: color (required), file, mode, tolerance.
select_ellipseBIdempotent
Select an ellipse inscribed in the given rectangle. mode is
replace (default), add, or subtract against the current
selection.
Inputs: x (required), y (required), width (required), height (required), +2 more.
select_frameAIdempotent
Make a frame active, so the next edits land on it. Headless forgets this
between calls, so use it as a step in edit_batch there.
Inputs: number (required), file.
select_layerAIdempotent
Make a layer active, so the next edits land on it. name may be a
"Group/Layer" path. Headless forgets this between calls, so use it as a step
in edit_batch there.
Inputs: name (required), file.
select_rectangleCIdempotent
Set a rectangular selection. Most meaningful on the live editor.
Inputs: x (required), y (required), width (required), height (required), +1 more.
set_active_spriteAIdempotent
Live editor only: make one of the open documents active, found by
exact filename or basename match (e.g. "turret.aseprite"). Returns
which sprite matched and how. Subsequent tools operate on it, even if the
artist clicks another tab. Unsaved sprites share a name: pick those with
pin_sprite.
Inputs: filename (required).
set_cel_opacityCIdempotent
Set the cel's opacity (0-255).
Inputs: opacity (required), file, frame, layer.
set_cel_positionCIdempotent
Move the cel's top-left origin to (x, y).
Inputs: x (required), y (required), file, frame, +1 more.
set_color_modeA
Convert the sprite between rgb | gray | indexed color modes.
dithering applies only when converting to indexed: ordered | old |
error-diffusion (default none). Returns the old and new mode. One undo
step. Headless: pass file.
Inputs: mode (required), file, dithering.
set_editor_viewCIdempotent
Live editor only: set the viewport zoom (1.0 = 100%) and/or scroll — e.g. zoom to the region you're about to edit so the artist can watch.
Inputs: zoom, scroll_x, scroll_y.
set_frame_durationCIdempotent
Set frame number's duration in milliseconds.
Inputs: ms (required), number (required), file.
set_frame_durationsBIdempotent
Set every frame in [from_frame..to_frame] to ms milliseconds.
Inputs: ms (required), to_frame (required), from_frame (required), file.
set_layer_blend_modeCIdempotent
Set a layer's blend mode. One of: normal, multiply, screen, overlay, darken, lighten, color_dodge, color_burn, hard_light, soft_light, difference, exclusion, hue, saturation, color, luminosity, addition, subtract, divide.
Inputs: mode (required), name (required), file.
set_layer_opacityCIdempotent
Set a layer's opacity (0-255).
Inputs: name (required), opacity (required), file.
set_layer_visibilityCIdempotent
Show or hide a layer.
Inputs: name (required), visible (required), file.
set_onion_skinAIdempotent
Configure the editor's onion-skin view: on/off, ghost counts each
direction, and whether ghosting stays inside the current tag. A view
preference — visually meaningful in the live editor. (For a rendered
onion-skin image any backend can produce, use render_onion_composite.)
Inputs: active (required), file, loop_tag, next_frames, +1 more.
set_paletteB
Replace the whole palette with colors (list of #rrggbb/#rrggbbaa).
Inputs: colors (required), file.
set_palette_colorCIdempotent
Set palette entry index to color (#rrggbb or #rrggbbaa).
Inputs: color (required), index (required), file.
set_safety_railsAIdempotent
Set the safety rails for this session, or pass nothing to read them.
dry_run true makes every edit report what it would change, as an error,
then roll back; tools that save, export, or run raw Lua refuse instead.
max_changed_pixels caps what one call can change, and an edit over it is
rolled back; 0 removes the cap. It counts hidden layers. move_layer isn't capped, and
run_lua is capped only with edit=true.
Inputs: dry_run, max_changed_pixels.
set_slice_centerAIdempotent
Set a slice's 9-patch stretchable center rectangle (relative to the slice).
One undo step. Headless: pass file.
Inputs: x (required), y (required), name (required), width (required), +2 more.
set_slice_pivotAIdempotent
Set a slice's pivot point, in pixels relative to the slice's top-left. This
pivot is exported into the Unity .meta by export_unity_slices. One undo
step. Headless: pass file.
Inputs: name (required), pivot_x (required), pivot_y (required), file.
set_sprite_metadataA
Attach typed key/value metadata to the sprite (Aseprite's Properties system — stored in the .aseprite file itself). Values may be strings, numbers, or booleans. Useful for provenance ("generated_by", spec IDs) and pipeline state. One undo step.
Inputs: entries (required), file.
set_symmetryAIdempotent
Live editor only: set mirror-painting symmetry — mode is none,
horizontal (mirror across a vertical axis), vertical, or
both; optionally place the axis lines. Affects the artist's
subsequent brush strokes.
Inputs: mode (required), x_axis, y_axis.
set_tag_colorAIdempotent
Set the timeline label color of the tag name (#rrggbb or
#rrggbbaa). One undo step. Headless: pass file.
Inputs: name (required), color (required), file.
set_tag_directionAIdempotent
Set the playback direction of the tag name: forward | reverse |
pingpong | pingpong_reverse. One undo step. Headless: pass file.
Inputs: name (required), direction (required), file.
set_tag_rangeAIdempotent
Move the tag name to span frames from_frame..to_frame
(1-based, inclusive; validated against the sprite's frame count). One
undo step. Headless: pass file.
Inputs: name (required), to_frame (required), from_frame (required), file.
set_tilesA
Place tile references on a tilemap layer's cel. tiles is a list of
{column, row, index} objects (0-based grid cells; index 0 erases to the empty
tile). The cel is created or grown as needed, anchored at the sprite origin.
frame is 1-based. One undo step. Headless: pass file.
Inputs: frame (required), layer (required), tiles (required), file.
sharpenA
Sharpen the active cel (unsharp mask over a 3x3 neighborhood).
strength 0.1-2.0. Only opaque pixels are considered, so sprite edges
don't halo against transparency. One undo step.
Inputs: file, strength.
show_choice_dialogA
Live editor only: pop a small dialog IN Aseprite with a message and
up to 4 option buttons (e.g. approve/redo). Non-blocking — call
get_dialog_choice to collect the artist's pick.
Inputs: message (required), options (required), title.
smear_frameA
Append a motion-smear frame blending from_frame and to_frame:
overlapping pixels averaged, single-frame areas ghosted at half alpha — a
pixel-content smear. RGB sprite only. Headless: pass file.
Inputs: to_frame (required), from_frame (required), file, layer.
sort_paletteA
Reorder palette swatches by luminance (default), hue, or
saturation. Intended for RGB sprites' swatch organization — on an
INDEXED sprite this changes which color each pixel shows (indices aren't
remapped). One undo step.
Inputs: by, file, ascending.
split_into_layersA
Separate a picture into parts on their own layers, like armour and meadow,
so each can be edited or animated alone. seeds are points on each part:
[{"name": "armour", "x": 90, "y": 40}, {"name": "meadow", "x": 5, "y": 5}].
The first part named ends up on top. Each part grows from its seeds and stops where colours change sharply, so
put a seed on every distinct area of a part (a part may have many seeds).
If a part leaks into another, add seeds where it leaked and run it again.
layer defaults to the active one, which is hidden afterwards unless
hide_source is false. Check the result with look and layer=.
One undo step. Headless: pass file.
Inputs: seeds (required), file, frame, layer, +1 more.
split_sheetA
Cut a character sheet (poses in a columns x rows grid) into one
pixel-art sprite per pose, all at the same scale and on ONE shared palette of
colors colours (or palette), so the poses stay consistent with each
other. Each cell is shrunk to width x height (the cell's aspect by
default), its background cleared and the bits of neighbouring poses dropped.
Each sprite gets a tag named from names (row by row; "pose_1"... by
default), so pin_sprite(tag=...) can pick it. Live: opens the sprites in
the editor. Headless: writes <out_dir>/<name>.aseprite.
Inputs: rows (required), width (required), columns (required), image_path (required), +9 more.
start_recordingAIdempotent
Start recording this session: a picture of the active frame is kept after every
edit, for stop_recording to turn into a GIF timelapse. Each picture is one more
read of the sprite, so edits run a little slower while it's on. Starting again
throws away what's recorded. Headless: pass file.
Inputs: file, max_frames.
statusARead-only
Report backend health plus this server's version and whether a newer release exists. Live: whether Aseprite is connected + its version. Headless: the resolved Aseprite executable path and whether it exists.
Inputs: no named parameters.
stop_recordingA
Stop recording and write the timelapse GIF to out_path. It's zoomed with
sharp pixels to fit max_size, and the final picture holds for a beat before it
loops. Larger GIFs take longer to encode, so raise max_size with care.
Inputs: out_path (required), frame_ms, max_size.
stop_watching_changesAIdempotent
Detach the watch_changes listener.
Inputs: no named parameters.
swing_partA
Swing a wing, arm, tail or ear about its joint across frames. outline
is a polygon round the part, in canvas pixels [[x, y], ...]; keep it to
the part itself (not the face or chest beside it). pivot is the joint.
keys, one per frame (frames are made as needed): {"frame": 2, "angle": 10, "dx": 0, "dy": -1, "ms": 90}, angle in degrees clockwise.
Where the part met the body, a band of shadow (the part's darkest
colour by default) stays underneath, so turning never opens a gap, and the
part's light outer halo is dropped so it doesn't streak. Small angles (up to
about 15) look best. One undo step. Headless: pass file.
Inputs: keys (required), pivot (required), outline (required), band, +3 more.
tween_cel_opacityA
Fade a layer's cels across [from_frame..to_frame]: opacity
interpolates from from_opacity to to_opacity (0-255) with the
chosen easing. Every frame in the range needs a cel on the layer. One
undo step.
Inputs: to_frame (required), from_frame (required), to_opacity (required), from_opacity (required), +3 more.
tween_framesA
Insert count in-between frames between from_frame and to_frame
that slide the start frame's art toward where the end frame's art sits, so it
works for moved cels and for art redrawn in a new place. It moves the art
without reshaping it, and refuses if the art hasn't moved. easing: linear,
ease_in, ease_out, or smoothstep. Check the result with look_animation.
Headless: pass file.
Inputs: to_frame (required), from_frame (required), file, count, +2 more.
undoB
Undo the last edit on the active sprite (live editor).
Inputs: file.
walk_cycle_templateA
Lay down a timed, tagged walk or run skeleton to draw over. It adds frames
frames (an even number, 4-16), or uses the sprite if it's a blank single frame,
with a locked faded guide layer and an empty art layer above it, which it leaves
active. The near limbs are light blue and the far limbs dark blue. Feet travel
backward on the ground and swing forward through the air, so the cycle walks
forward; the figure stays in place, ready for scrolling scenery or game movement.
Check it with look_animation, then hide or delete the guide. One undo step.
Headless: pass file.
Inputs: body_height (required), tag, file, gait, +2 more.
watch_changesA
Live editor only: start counting edits the ARTIST makes to the active
sprite (via Sprite.events). Poll with get_watched_changes — e.g.
wait for the artist to finish touching up, then re-run the QA sweep.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 194 tools
Most tools have clearly distinct purposes, but the set contains many overlapping paths: numerous export tools (export_sprite, export_spritesheet, export_unity_sprite, export_godot, export_to_game, export_tileset, export_animation, etc.) and several animation-fill tools (tween_frames, inbetween, smear_frame, apply_timing). The detailed descriptions help, but with 194 tools an agent can still struggle to choose the right variant.
Almost all names use consistent snake_case with a verb_noun or noun_verb pattern, such as draw_line, create_slice, list_slices, and set_slice_pivot. A few single-word or noun-first names (look, status, inbetween, palette_ramp_walk) are minor deviations but still readable.
194 tools is an extreme mismatch for a coherent tool set, far beyond the typical 3–15 range. While the domain is broad, the surface is so large that many tools overlap and the set becomes difficult to navigate.
The surface covers Aseprite editing comprehensively: drawing, shapes, selections, layers, frames, tags, slices, tilemaps, palettes, transforms, animation, export formats, QA, batch operations, and live-editor interaction. There are no obvious dead ends for the stated pixel-art workflow.
Maintenance
Related MCP Connectors
Pixel art for your game, from your coding agent. Generate sprites, items and tiles in your game's style (64 to 1024 px), make variants, reskins and N/E/S/W directions, then edit everything in a full pixel art editor that syncs into your project. Works with Claude, Claude Code, Cursor and ChatGPT; sign in with OAuth, no API key.
Generate, edit, style-match, turn, and animate game-ready pixel art at exact sizes.
Turn images into pixel art, extract and remap palettes, and upscale sprites without blur.
Generate pixel art sprites, animations, 8-direction rotations and palettes for games.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to drive Aseprite for pixel-art creation, including sprite setup, grid-based drawing, layer/frame/tag management, reference image import, and export, with rendered previews after every mutation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to create, inspect, edit, and export pixel art, sprites, animations, and spritesheets using headless Aseprite, and to convert arbitrary images into indexed pixel art.MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to create and edit pixel art and animated sprites in Aseprite through 104 tools covering drawing, layers, animation, palettes, tilemaps, exports, visual analysis, and raw Lua scripting.116MIT
- AlicenseBqualityCmaintenanceEnables an AI agent to create and edit pixel art directly in Aseprite — building sprites, layers, frames, animation tags and palettes, painting pixels and primitives, inspecting the rendered result, and exporting GIFs or sprite sheets. All work lands on real .aseprite files that can be opened and edited by hand.431MIT