MCP ScannerCustom audit
All servers

diivi/aseprite-mcp

MCP server for interacting with the Aseprite API

Packageaseprite-mcp
Version0.1.0 in pyproject.toml
Publisherdiivi community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 1,003Forks 108Last push 2026-11-03
Python 100.0%by source files the scanner reads
Code safetypartly tracedExposure5.1Prompts10.0Supply chain2.3Secrets10.0Transparency10.0
Analysis confidence83%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure5.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain2.3/10Poor

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • In 35 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there

Top risks in plain words

  • CRITICAL9 production dependencies have known vulnerabilities (worst: critical).
  • HIGHTools export_layers, view_sprite read or write any file path by design: an agent steered by prompt injection can use them that way.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it only the folder it needs

    export_layers, view_sprite can read or write any file path. Mount a single project folder, read-only where you can.

  • Turn off the tools you do not use

    Most MCP clients let you disable single tools. If you do not need export_layers, view_sprite, switch them off.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Update its vulnerable packages

    Use anyio 4.14.2 or later, certifi 2026.10.18 or later, h11 0.16.0 or later, idna 3.15 or later and 5 more.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 123 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Start other programs on the machinecan run commands or launch programs
add_frame, add_frames, add_group, add_layer, adjust_brightness_contrast, adjust_hsl and 110 more
116 of 123
Read or write filesopen, create, change or delete files
start_preview_server, stop_preview_server, view_sprite
3 of 123
Read environment variablesoften where API keys are kept
add_frame, add_frames, add_group, add_layer, adjust_brightness_contrast, adjust_hsl and 108 more
114 of 123

No tool was seen to: connect to the internet or other hosts; read passwords, tokens or keys; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files3 tools · start_preview_server, stop_preview_server, view_sprite

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (123: 123 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

export_layerstool Export each layer as its own PNG file named <layer>.png.ProcessesEnv varsReads/writes files
Export each layer as its own PNG file named <layer>.png.

    Args:
        filename: Aseprite file to export
        output_directory: Directory for the per-layer PNGs (created if missing)
        include_hidden: Also export hidden layers (default False)
view_spritetool Look at the sprite: returns an image of its frames that you can see directly.ProcessesFilesEnv varsoutside textReads/writes files
Look at the sprite: returns an image of its frames that you can see directly.

    Use this after every drawing pass instead of exporting a PNG and opening
    it. Each frame is scaled up with nearest-neighbour, shown over a light
    checkerboard (transparent pixels), with a pixel grid (darker every 8 px)
    and rulers giving sprite coordinates, so a mistake you spot can be fixed
    at exact x/y right away. Frames are laid out side by side, at most four
    per row, each titled with its number and duration.

    Args:
        filename: Aseprite file to look at
        frames: Frames to show, 1-based: "3", "1-4" or "1,3,6-8", at most 16;
            "" shows all frames (the first 16 of longer sprites)
        layer_name: Show only this layer, by name or "group/layer" path
            (default: all visible layers)
        scale: Zoom factor, 1-64; 0 picks one (each frame ~384 px, at least 6x
            for sprites up to 128 px) and a layout that fits without shrinking
        grid: Draw the pixel grid (only when the scale is 4 or more)
        rulers: Label x across the top and y down the left
        output_filename: Optional path to also save the image as PNG
        region: Zoom into part of the sprite, "x,y,w,h" in sprite pixels,
            e.g. "40,20,16,16" for a hand; rulers keep sprite coordinates
            and scale 0 zooms in to fill the view
add_frametool Add a new frame to the Aseprite file.ProcessesEnv vars
Add a new frame to the Aseprite file.

    Args:
        filename: Name of the Aseprite file to modify
add_framestool Add multiple frames to a sprite and optionally set their duration.ProcessesEnv vars
Add multiple frames to a sprite and optionally set their duration.

    Args:
        filename: Name of the Aseprite file to modify
        count: Number of frames to add
        duration_ms: Optional duration for each new frame in milliseconds
add_grouptool Add a new, empty group layer.ProcessesEnv vars
Add a new, empty group layer.

    Combine with add_layer(group=...) / duplicate_layer(group=...) to build a
    grouped layer structure.

    Args:
        filename: Name of the Aseprite file to modify
        group_name: Name of the new group
        parent_group: Optional existing group to nest the new group inside, by
            name or "group/subgroup" path (default: top level)
add_layertool Add a new layer to the Aseprite file.ProcessesEnv vars
Add a new layer to the Aseprite file.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Name of the new layer
        group: Optional group to place the new layer inside, by name or
            "group/subgroup" path (default: top level)
adjust_brightness_contrasttool Native Brightness/Contrast filter (app.command.BrightnessContrast).ProcessesEnv vars
Native Brightness/Contrast filter (app.command.BrightnessContrast).

    Args:
        filename: Aseprite file to modify
        layer_name: layer to adjust (empty = active layer)
        frame_index: 1-based frame
        brightness: -100..100
        contrast: -100..100
        x, y, width, height: optional region (width>0 & height>0 to scope)
adjust_hsltool Shift hue, saturation, and lightness of all opaque pixels in a cel.ProcessesEnv vars
Shift hue, saturation, and lightness of all opaque pixels in a cel.

    Useful for creating palette-swapped variants and shading: e.g. darken
    a duplicated layer for shadows or hue-shift toward blue for night
    scenes.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to adjust
        frame_index: Frame index starting at 1
        hue_shift: Degrees to rotate hue, -360 to 360
        saturation_shift: Saturation delta, -100 to 100
        lightness_shift: Lightness delta, -100 to 100
adjust_hsl_nativetool Native Hue/Saturation/Lightness filter (engine-quality vs adjust_hsl).ProcessesEnv vars
Native Hue/Saturation/Lightness filter (engine-quality vs adjust_hsl).

    Args:
        filename: Aseprite file to modify
        layer_name: layer to adjust (empty = active layer)
        frame_index: 1-based frame
        hue: -180..180 (degrees)
        saturation: -100..100
        lightness: -100..100
        x, y, width, height: optional region (width>0 & height>0 to scope)
animation_sanitizetool Normalize animation consistency and optionally apply fixes.ProcessesEnv vars
Normalize animation consistency and optionally apply fixes.

    layer_frame_ranges format: ["layer:1-8,17-24", "clouds:1-12"]
    out_of_range_action: "set_opacity_zero", "delete_cels", "none"
    ignore_full_canvas_overlaps: skip overlap checks when a cel is full canvas
    Returns JSON for AI consumption (summary, layer_stats, alerts, overlaps).
animation_workflow_guidetool Return a concise English guide for animating pixel art well.
Return a concise English guide for animating pixel art well.

    Read it before animating. use_case: "character" (people, creatures,
    attacks, jumps, walks), "idle" (idle and breathing loops, including a
    fighter's ready stance between attacks), "environment" (scenes,
    backgrounds, effects) or anything else for general advice.
apply_convolutiontool Native convolution filter (blur / sharpen / edge / emboss …).ProcessesEnv vars
Native convolution filter (blur / sharpen / edge / emboss …).

    Args:
        filename: Aseprite file to modify
        matrix: a built-in matrix name (see list_convolution_matrices),
            e.g. "blur-3x3", "sharpen-3x3", "edges-find", "misc-emboss"
        layer_name: layer to filter (empty = active layer)
        frame_index: 1-based frame
        x, y, width, height: optional region (width>0 & height>0 to scope)
apply_dither_gradienttool Fill a rectangle with a two-color gradient using Bayer 4x4 ordered dithering.ProcessesEnv vars
Fill a rectangle with a two-color gradient using Bayer 4x4 ordered dithering.

    This is the classic pixel-art way to blend two colors without
    introducing new intermediate colors. The gradient runs from
    color_start (top/left) to color_end (bottom/right).

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Left edge of the rectangle
        y: Top edge of the rectangle
        width: Rectangle width
        height: Rectangle height
        color_start: Hex color at the start of the gradient
        color_end: Hex color at the end of the gradient
        horizontal: Run the gradient left-to-right instead of top-to-bottom
        create_if_missing: Create the cel if it does not exist
apply_dither_patterntool Fill a rectangle with a uniform Bayer-dithered mix of two colors.ProcessesEnv vars
Fill a rectangle with a uniform Bayer-dithered mix of two colors.

    density controls the ratio: 0.0 = all color_a, 0.5 = checkerboard,
    1.0 = all color_b. Useful for textures (stone, grass) and flat
    mid-tones between two palette colors.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Left edge of the rectangle
        y: Top edge of the rectangle
        width: Rectangle width
        height: Rectangle height
        color_a: Base hex color
        color_b: Mixed-in hex color
        density: Fraction of color_b, 0.0-1.0 (default 0.5)
        create_if_missing: Create the cel if it does not exist
apply_gradient_recttool Apply a linear gradient fill to a rectangle.ProcessesEnv vars
Apply a linear gradient fill to a rectangle.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x (int): The x coordinate of the rectangle to draw on.
        y (int): The y coordinate of the rectangle to draw on.
        width (int): The width of the rectangle to draw on.
        height (int): The height of the rectangle to draw on.
        color_start (str): The start color of the gradient.
        color_end (str): The end color of the gradient.
        horizontal (bool, optional): Whether to draw the gradient horizontally. Defaults to True.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
apply_palette_presettool Set the sprite palette to a built-in retro preset.ProcessesEnv vars
Set the sprite palette to a built-in retro preset.

    This only sets the palette; existing pixels keep their colors.
    Use quantize_to_palette afterwards to snap pixels to the new palette.

    Args:
        filename: Aseprite file to modify
        preset: One of: gameboy, monochrome, grayscale_4, cga, pico8, c64,
            dawnbringer16, dawnbringer32
audit_animationtool Audit animation frames for overlaps and out-of-range layer activity.ProcessesEnv vars
Audit animation frames for overlaps and out-of-range layer activity.

    overlap_pairs format: ["layerA,layerB", "layerC:layerD"]
    layer_frame_ranges format: ["layer:1-8,17-24", "clouds:1-12"]
    Returns JSON for AI consumption (summary, overlaps, out_of_range, optional cels).
clear_celtool Delete a cel on a layer/frame.ProcessesEnv vars
Delete a cel on a layer/frame.
compare_framestool Compare two frames and report how much they differ.ProcessesEnv vars
Compare two frames and report how much they differ.

    Renders both frames as you see them (visible layers only) and diffs
    them pixel by pixel. Use while animating to confirm a frame actually
    changed, or that it did not change too much.

    Args:
        filename: Aseprite file to read
        frame_a: First frame index, starting at 1
        frame_b: Second frame index, starting at 1
        layer_name: Compare only this layer (or group), e.g. the character
            without the effects around it; "" compares all visible layers
        region: Compare only "x,y,w,h" (sprite pixels), e.g. the legs, to
            prove that part did or did not move; "" compares the whole frame

    Returns:
        JSON with changed pixel count, total pixels, percent changed,
        and the bounding box of the changed region.
copy_celtool Copy a cel from one frame to another.ProcessesEnv vars
Copy a cel from one frame to another.
copy_frametool Copy all cels from a source frame to a target frame (or append).ProcessesEnv vars
Copy all cels from a source frame to a target frame (or append).
copy_layers_between_spritestool Copy layers by name from a source sprite to a target sprite.ProcessesEnv vars
Copy layers by name from a source sprite to a target sprite.

    Args:
        source_filename: Source .aseprite file
        target_filename: Target .aseprite file
        layer_names: List of layer names to copy
        replace: Overwrite existing cels in target layers
        create_missing_frames: Add frames to target if needed
copy_regiontool Copy a rectangular region of pixels to another position, layer, or frame.ProcessesEnv vars
Copy a rectangular region of pixels to another position, layer, or frame.

    Coordinates are sprite-global. Fully transparent source pixels do not
    overwrite destination pixels. The destination cel is created when missing.

    Args:
        filename: Aseprite file to modify
        layer_name: Source layer
        frame_index: Source frame index starting at 1
        x: Left edge of the source region
        y: Top edge of the source region
        width: Region width
        height: Region height
        dest_x: Left edge of the destination
        dest_y: Top edge of the destination
        target_layer_name: Destination layer (default: same as source)
        target_frame_index: Destination frame (default: same as source)
copy_spritetool Copy a sprite to a new Aseprite file.ProcessesEnv vars
Copy a sprite to a new Aseprite file.

    Args:
        filename: Name of the Aseprite file to copy
        output_filename: Name of the output .aseprite file
        overwrite: Whether to overwrite if output exists
create_canvastool Create a new Aseprite canvas with specified dimensions.ProcessesEnv vars
Create a new Aseprite canvas with specified dimensions.

    Args:
        width: Width of the canvas in pixels
        height: Height of the canvas in pixels
        filename: Name of the output file (default: canvas.aseprite)
create_celtool Create an empty cel on a layer/frame.ProcessesEnv vars
Create an empty cel on a layer/frame.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        frame_index: Frame index starting at 1
        x: X position in pixels
        y: Y position in pixels
create_slicetool Create a named slice (a rectangular region usable by game engines).ProcessesEnv vars
Create a named slice (a rectangular region usable by game engines).

    Args:
        filename: Aseprite file to modify
        name: Slice name
        x: Left edge of the slice
        y: Top edge of the slice
        width: Slice width
        height: Slice height
create_tilemap_layertool Create a tilemap layer with its own tileset.ProcessesEnv vars
Create a tilemap layer with its own tileset.

    Sets the sprite grid to the tile size and adds a tilemap layer.
    Tile index 0 is always the empty tile; add real tiles with
    draw_on_tile (which creates tiles on demand).

    Args:
        filename: Aseprite file to modify
        layer_name: Name for the new tilemap layer
        tile_width: Tile width in pixels
        tile_height: Tile height in pixels
crop_canvastool Crop the canvas to the given rectangle, discarding content outside it.ProcessesEnv vars
Crop the canvas to the given rectangle, discarding content outside it.

    Args:
        filename: Aseprite file to modify
        x: Left edge of the crop area
        y: Top edge of the crop area
        width: Width of the crop area
        height: Height of the crop area
delete_frametool Delete a frame by index.ProcessesEnv vars
Delete a frame by index.

    Args:
        filename: Aseprite file to modify
        frame_index: Frame index starting at 1
delete_layertool Delete a layer by name.ProcessesEnv vars
Delete a layer by name.

    Args:
        filename: Aseprite file to modify
        layer_name: Name of the layer to delete
delete_slicetool Delete a slice by name.ProcessesEnv vars
Delete a slice by name.

    Args:
        filename: Aseprite file to modify
        name: Slice name to delete
delete_tagtool Delete an animation tag by name.ProcessesEnv vars
Delete an animation tag by name.

    Args:
        filename: Aseprite file to modify
        name: Tag name to delete
draw_circletool Draw a circle on the canvas.ProcessesEnv vars
Draw a circle on the canvas.

    Args:
        filename: Name of the Aseprite file to modify
        center_x: X coordinate of circle center
        center_y: Y coordinate of circle center
        radius: Radius of the circle in pixels
        color: Hex color code (default: "#000000")
        fill: Whether to fill the circle (default: False)
draw_circle_attool Draw a circle on a specific layer/frame.ProcessesEnv vars
Draw a circle on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        center_x (int): The x coordinate of the center of the circle.
        center_y (int): The y coordinate of the center of the circle.
        radius (int): The radius of the circle.
        color (str, optional): The color to draw the circle with. Defaults to "#000000".
        fill (bool, optional): Whether to fill the circle. Defaults to False.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_ellipse_attool Draw an ellipse on a specific layer/frame.ProcessesEnv vars
Draw an ellipse on a specific layer/frame.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        center_x: Ellipse center x
        center_y: Ellipse center y
        radius_x: Horizontal radius in pixels
        radius_y: Vertical radius in pixels
        color: Hex color code (default "#000000")
        fill: Fill the ellipse instead of outlining it
        create_if_missing: Create the cel if it does not exist
draw_iso_boxtool Draw a solid box in 2:1 isometric projection, with clean 2-1 edges.ProcessesEnv vars
Draw a solid box in 2:1 isometric projection, with clean 2-1 edges.

    For furniture, crates, walls and floors in isometric scenes. The three
    visible faces get their own colours (light from the top: top lightest,
    one side mid, the other darkest). Small or organic parts on top of a box
    (handles, cats, hands) are drawn with draw_rows instead.

    Coordinates, in sprite pixels:
        (x, y)  back corner of the box's footprint on the floor
        w       length along the right-down axis: each unit is 2 px right, 1 px down
        d       length along the left-down axis: each unit is 2 px left, 1 px down
        h       height in px; z raises the whole box (e.g. a book on a desk)
    Later boxes draw over earlier ones, so draw back to front.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Back corner x
        y: Back corner y (floor level)
        z: Elevation above the floor in px (0 = on the floor)
        w: Units along the right-down axis (>= 1)
        d: Units along the left-down axis (>= 1)
        h: Height in px (0 = a flat tile)
        top: Hex colour of the top face
        left: Hex colour of the front-left face
        right: Hex colour of the front-right face
        outline: Optional hex colour for a 1 px outline around the box,
            drawn over whatever is there
        create_if_missing: Create the cel if it does not exist
draw_linetool Draw a line on the canvas.ProcessesEnv vars
Draw a line on the canvas.

    Args:
        filename: Name of the Aseprite file to modify
        x1: Starting x coordinate
        y1: Starting y coordinate
        x2: Ending x coordinate
        y2: Ending y coordinate
        color: Hex color code (default: "#000000")
        thickness: Line thickness in pixels (default: 1)
draw_line_attool Draw a line on a specific layer/frame.ProcessesEnv vars
Draw a line on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x1 (int): The x coordinate of the first point of the line.
        y1 (int): The y coordinate of the first point of the line.
        x2 (int): The x coordinate of the second point of the line.
        y2 (int): The y coordinate of the second point of the line.
        color (str, optional): The color to draw the line with. Defaults to "#000000".
        thickness (int, optional): The thickness of the line. Defaults to 1.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_on_tiletool Draw pixels onto a tile in a tilemap layer's tileset.ProcessesEnv vars
Draw pixels onto a tile in a tilemap layer's tileset.

    Coordinates are tile-local (0,0 = tile top-left). When tile_index
    equals the current tile count, a new tile is appended automatically.

    Args:
        filename: Aseprite file to modify
        layer_name: Tilemap layer whose tileset to edit
        tile_index: Tile to draw on (1 = first real tile; 0 is reserved
            for the empty tile and cannot be drawn on)
        pixels: List of {"x": int, "y": int, "color": "#RRGGBB"}
draw_pathtool Draw a path using a polyline on a specific layer/frame.ProcessesEnv vars
Draw a path using a polyline on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        points (List[Dict[str, int]]): The points to draw the path with.
        color (str, optional): The color to draw the path with. Defaults to "#000000".
        thickness (int, optional): The thickness of the path. Defaults to 1.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_pixelstool Draw pixels on the canvas with specified colors.ProcessesEnv vars
Draw pixels on the canvas with specified colors.

    Args:
        filename: Name of the Aseprite file to modify
        pixels: List of pixel data, each containing:
            {"x": int, "y": int, "color": str}
            where color is a hex code like "#FF0000"
draw_pixels_attool Draw pixels on a specific layer/frame.ProcessesEnv vars
Draw pixels on a specific layer/frame.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        frame_index: Frame index starting at 1
        pixels: List of pixel data with x/y/color
        create_if_missing: Create cel if it does not exist
draw_polygontool Draw a polygon on a specific layer/frame.ProcessesEnv vars
Draw a polygon on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        points (List[Dict[str, int]]): The list of points to draw the polygon.
        color (str, optional): The color to draw the polygon with. Defaults to "#000000".
        fill (bool, optional): Whether to fill the polygon. Defaults to False.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_rectangletool Draw a rectangle on the canvas.ProcessesEnv vars
Draw a rectangle on the canvas.

    Args:
        filename: Name of the Aseprite file to modify
        x: Top-left x coordinate
        y: Top-left y coordinate
        width: Width of the rectangle in pixels (must be > 0)
        height: Height of the rectangle in pixels (must be > 0)
        color: Hex color code (default: "#000000")
        fill: Whether to fill the rectangle (default: False)
draw_rectangle_attool Draw a rectangle on a specific layer/frame.ProcessesEnv vars
Draw a rectangle on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x (int): The x coordinate of the top-left corner of the rectangle.
        y (int): The y coordinate of the top-left corner of the rectangle.
        width (int): The width of the rectangle.
        height (int): The height of the rectangle.
        color (str, optional): The color to draw the rectangle with. Defaults to "#000000".
        fill (bool, optional): Whether to fill the rectangle. Defaults to False.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_rowstool Draw pixels from rows of characters, like ASCII art: one character per pixel.ProcessesEnv vars
Draw pixels from rows of characters, like ASCII art: one character per pixel.

    The compact way to place hand-chosen pixels (faces, hands, animals,
    handles, any detail under ~12 px), far smaller than a pixel list:

        rows=["..KK..",
              ".KSSK.",
              "KSSSSK"],
        legend={"K": "#1A1C2C", "S": "#F4B41B"}

    Row 1 is drawn at y, its first character at x (sprite pixels). "." or a
    character missing from the legend leaves that pixel untouched; map a
    character to "#00000000" to erase. Read existing pixels back in the same
    format with read_rows, edit the strings, and draw them again.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Left edge of the rows (sprite pixels)
        y: Top edge of the rows (sprite pixels)
        rows: Equal-width strings, top to bottom
        legend: Single character -> hex colour (#RGB, #RRGGBB or #RRGGBBAA)
        outline: Optional hex colour for a 1 px outline around the outside of
            the drawn pixels (sides only, not diagonals), drawn over whatever
            is there, e.g. to separate an object from the scene behind it
        create_if_missing: Create the cel if it does not exist
draw_texttool Draw text onto a sprite.ProcessesEnv vars
Draw text onto a sprite.

    Glyphs are rasterised outside Aseprite and composited in, because the
    Lua API has no text drawing of its own.

    Args:
        filename: Aseprite file to modify
        text: String to draw
        x: X coordinate of the anchor point
        y: Y coordinate of the anchor point
        font: Font name from list_text_fonts, or a path to a .ttf/.otf or a
            bitmap font directory
        size: Pixel size for TrueType fonts; integer scale factor for bitmap
            fonts (default 1)
        color: Text colour, #RRGGBB or #RRGGBBAA (default white)
        layer_name: Layer to draw on; the active/first layer if omitted
        frame_index: Frame index starting at 1 (default 1)
        anchor: Which point of the text (x, y) refers to - one of topleft,
            top, topright, left, center, right, bottomleft, bottom,
            bottomright, baselineleft, baseline, baselineright
            (default topleft)
        letter_spacing: Extra pixels between glyphs (default 0)
        bold: Faux-bold passes; each grows strokes by 1px (default 0)
        outline_color: If set, draw a 1px outline in this colour
        outline_width: Outline thickness in pixels (default 1)
        outline_diagonal: Include diagonal neighbours in the outline, giving a
            rounded corner; False gives a boxier 4-way outline (default True)
        shadow_color: If set, draw a drop shadow in this colour
        shadow_dx: Shadow X offset (default 1)
        shadow_dy: Shadow Y offset (default 1)
        antialias: Keep greyscale edges instead of hard pixels (default False)
        create_if_missing: Create the layer/cel if absent (default True)
duplicate_frame_rangetool Duplicate a frame range and append copies to the end.ProcessesEnv vars
Duplicate a frame range and append copies to the end.

    Args:
        filename: Name of the Aseprite file to modify
        start_frame: Starting frame index (1-based)
        end_frame: Ending frame index (1-based, inclusive)
        times: Number of times to append the range (default: 1)
duplicate_layertool Duplicate a layer with all its cels across every frame.ProcessesEnv vars
Duplicate a layer with all its cels across every frame.

    The copy inherits the source's opacity and blend mode. By default it is
    placed directly above the source layer; pass `group` to place it inside a
    group instead.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to duplicate, by name or "group/subgroup/layer" path
        new_name: Name for the copy (default: "<layer_name> copy")
        group: Optional group to place the copy inside, by name or
            "group/subgroup" path (default: directly above the source)
ensure_layers_presenttool Ensure cels exist for layers across a frame range.ProcessesEnv vars
Ensure cels exist for layers across a frame range.
erase_colortool Make all pixels of a given color transparent (like a magic eraser).ProcessesEnv vars
Make all pixels of a given color transparent (like a magic eraser).

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        color: Hex color to erase, e.g. "#FF00FF"
        tolerance: Per-channel tolerance 0-255 (default 0 = exact match)
erase_regiontool Erase (make transparent) a rectangular region of pixels.ProcessesEnv vars
Erase (make transparent) a rectangular region of pixels.

    Coordinates are sprite-global.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        x: Left edge of the region
        y: Top edge of the region
        width: Region width
        height: Region height
export_animationtool Export the animation for sharing: a GIF (or PNG sequence), scaled, on a background.ProcessesEnv vars
Export the animation for sharing: a GIF (or PNG sequence), scaled, on a background.

    The sprite itself is never changed: the background is added to a
    temporary copy. Use this instead of a Lua saveCopyAs for previews.

    Args:
        filename: Aseprite file to export
        output_filename: Output path; .gif gives an animation, .png a numbered sequence
        tag: Export only this animation tag; "" exports every frame
        scale: Integer nearest-neighbour scale factor, 1-64 (default 1)
        background: Optional hex colour filled behind every frame, e.g.
            "#E9EEF2" so a dark outline reads in any viewer; "" keeps transparency
export_frametool Export a single frame as a PNG, optionally scaled up.ProcessesEnv vars
Export a single frame as a PNG, optionally scaled up.

    To look at your work while drawing, use view_sprite instead: it returns
    the image directly, with a pixel grid and coordinate rulers.

    Args:
        filename: Aseprite file to export
        frame_index: Frame index starting at 1
        output_filename: Output PNG path
        scale: Integer nearest-neighbor scale factor (default 1)
export_spritetool Export the Aseprite file to another format.ProcessesEnv vars
Export the Aseprite file to another format.

    Args:
        filename: Name of the Aseprite file to export
        output_filename: Name of the output file
        format: Output format (default: "png", can be "png", "gif", "jpg", etc.)
export_spritesheettool Export frames as a sprite sheet, optionally with a JSON data file.ProcessesEnv vars
Export frames as a sprite sheet, optionally with a JSON data file.

    Args:
        filename: Aseprite file to export
        output_filename: Output sheet image path (PNG)
        sheet_type: Layout: "horizontal", "vertical", "rows", "columns", or "packed"
        data_filename: Optional path for a JSON metadata file
        scale: Integer scale factor applied before packing (default 1)
        padding: Padding in pixels between frames (default 0)
        tag_name: Only include frames of this animation tag (default: all frames)
        data_format: JSON format for the data file: "json-array" (default) or "json-hash"
        list_tags: Include animation tag metadata in the JSON data file (default: False)
export_tagtool Export the frames of an animation tag as a GIF or PNG sequence.ProcessesEnv vars
Export the frames of an animation tag as a GIF or PNG sequence.

    Args:
        filename: Aseprite file to export
        tag_name: Animation tag to export
        output_filename: Output path; .gif gives an animation, .png a sequence
        scale: Integer scale factor (default 1)
extract_palettetool Build an OPTIMAL palette from the sprite via native ColorQuantization.ProcessesEnv vars
Build an OPTIMAL palette from the sprite via native ColorQuantization.

    True palette extraction (vs the nearest-snap quantize_to_palette): writes
    the resulting palette to the sprite and returns it. NOTE: mutates the
    sprite's palette. Sprite must be in RGB mode.

    Args:
        filename: Aseprite file to modify
        max_colors: palette size cap, 1..256 (fewer if the art has fewer)
        with_alpha: include alpha when quantizing

    Returns:
        JSON {colors: [#RRGGBB, ...], count}
fill_areatool Fill an area with color using the paint bucket tool.ProcessesEnv vars
Fill an area with color using the paint bucket tool.

    Args:
        filename: Name of the Aseprite file to modify
        x: X coordinate to fill from
        y: Y coordinate to fill from
        color: Hex color code (default: "#000000")
fill_area_attool Fill an area on a specific layer/frame.ProcessesEnv vars
Fill an area on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x (int): The x coordinate of the point to start filling from.
        y (int): The y coordinate of the point to start filling from.
        color (str, optional): The color to fill the area with. Defaults to "#000000".
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
flatten_spritetool Flatten all layers into a single layer.ProcessesEnv vars
Flatten all layers into a single layer.

    Args:
        filename: Aseprite file to modify
flip_layertool Flip a layer's image horizontally or vertically.ProcessesEnv vars
Flip a layer's image horizontally or vertically.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer name to flip
        frame_index: Frame index starting at 1
        direction: "horizontal" or "vertical"
generate_color_ramptool Generate a shading ramp (dark to light) from a base color.
Generate a shading ramp (dark to light) from a base color.

    Produces the standard pixel-art shading technique of hue-shifting:
    shadows lean cooler (hue shifted one way), highlights lean warmer.
    Use the returned colors for shading instead of plain darker/lighter
    versions of the same hue.

    Args:
        base_color: Hex color the ramp is built around, e.g. "#D04648"
        steps: Number of colors in the ramp, 2-16 (default 5)
        hue_shift_degrees: Total hue rotation across the ramp (default 20)
        lightness_range: Total lightness span across the ramp, 0-1 (default 0.5)

    Returns:
        JSON array of hex colors ordered darkest to lightest.
get_boundstool Report where the drawn pixels are in each frame: their bounding box.ProcessesEnv vars
Report where the drawn pixels are in each frame: their bounding box.

    Use while animating to measure instead of eyeballing: that rise and
    fall frames mirror each other, that the feet stay on the ground line,
    that a character never leaves the canvas.

    Args:
        filename: Aseprite file to read
        layer_name: Measure only this layer (or group); "" measures all
            visible layers together
        frames: Frames to measure, 1-based: "3", "1-4" or "1,3,6-8";
            "" measures every frame

    Returns:
        JSON with one entry per frame: x, y, width, height of the
        non-transparent pixels, or "empty": true for a blank frame.
get_color_statstool Report the colors used in a frame and how often each appears.ProcessesEnv vars
Report the colors used in a frame and how often each appears.

    Flattens the sprite (non-destructively) and histograms the frame.
    Use to check palette discipline: too many near-duplicate colors is
    a common pixel-art mistake.

    Args:
        filename: Aseprite file to read
        frame_index: Frame to analyze, starting at 1 (default 1)
        top: How many of the most-used colors to list (default 16)

    Returns:
        JSON with unique color count, opaque pixel count, and the top
        colors with usage counts.
get_composite_pixeltool Read the RGBA colour VISIBLE at a pixel (flattened composite of all layers).ProcessesEnv vars
Read the RGBA colour VISIBLE at a pixel (flattened composite of all layers).

    Unlike get_pixel_color (which reads a single cel), this composites every
    visible layer — "what the player actually sees" — by flattening a throwaway
    clone. Essential for value/CVD QA on grouped/multi-layer scenes.

    Args:
        filename: Aseprite file to read
        x: X coordinate (sprite-global)
        y: Y coordinate (sprite-global)
        frame_index: Frame index starting at 1
get_composite_recttool Read VISIBLE RGBA over a rectangle (flattened composite of all layers).ProcessesEnv vars
Read VISIBLE RGBA over a rectangle (flattened composite of all layers).

    The rectangular counterpart of get_composite_pixel — reads the composited
    pixels every visible layer produces, not a single cel.

    Args:
        filename: Aseprite file to read
        x: Top-left x (sprite-global)
        y: Top-left y (sprite-global)
        width: Region width
        height: Region height
        frame_index: Frame index starting at 1

    Returns:
        JSON array of {x, y, hex, r, g, b, a} objects
get_palettetool Get the active sprite palette as a JSON array of hex colors.ProcessesEnv vars
Get the active sprite palette as a JSON array of hex colors.
get_pixel_colortool Read the RGBA color of a single pixel.ProcessesEnv vars
Read the RGBA color of a single pixel.

    Args:
        filename: Aseprite file to read
        x: X coordinate
        y: Y coordinate
        layer_name: Layer to read from (uses active layer when empty)
        frame_index: Frame index starting at 1
get_pixels_recttool Read all pixel colors in a rectangular region.ProcessesEnv vars
Read all pixel colors in a rectangular region.

    Args:
        filename: Aseprite file to read
        x: Top-left x coordinate
        y: Top-left y coordinate
        width: Width of the region
        height: Height of the region
        layer_name: Layer to read from (uses active layer when empty)
        frame_index: Frame index starting at 1

    Returns:
        JSON array of {x, y, hex, r, g, b, a} objects
get_sprite_infotool Return sprite info as JSON string (size, color mode, frame durations, layers, tags).ProcessesEnv vars
Return sprite info as JSON string (size, color mode, frame durations, layers, tags).

    Args:
        filename: Name of the Aseprite file to inspect
get_tile_attool Read which tile is placed at a grid position.ProcessesEnv vars
Read which tile is placed at a grid position.

    Args:
        filename: Aseprite file to read
        layer_name: Tilemap layer to read
        frame_index: Frame index starting at 1
        col: Grid column (0-based)
        row: Grid row (0-based)

    Returns:
        JSON with {col, row, tile_index} (0 = empty).
get_tilemap_infotool Get tilemap layer info: tile size, tile count, and map dimensions.ProcessesEnv vars
Get tilemap layer info: tile size, tile count, and map dimensions.

    Args:
        filename: Aseprite file to read
        layer_name: Tilemap layer to inspect

    Returns:
        JSON with tile_width, tile_height, tile_count (real tiles,
        excluding the empty tile 0), map_cols, map_rows.
import_image_as_layertool Import an image file (PNG, etc.) into a layer of the sprite.ProcessesEnv vars
Import an image file (PNG, etc.) into a layer of the sprite.

    Useful for bringing in reference images or composing pre-made parts.
    The layer is created if it does not exist. Works best when the sprite
    is in RGB color mode.

    Args:
        filename: Aseprite file to modify
        image_path: Image file to import
        layer_name: Layer to place the image on
        frame_index: Frame index starting at 1 (default 1)
        x: X position for the image's top-left corner (default 0)
        y: Y position for the image's top-left corner (default 0)
invert_colorstool Native colour inversion (app.command.InvertColor).ProcessesEnv vars
Native colour inversion (app.command.InvertColor).

    Args:
        filename: Aseprite file to modify
        layer_name: layer to invert (empty = active layer)
        frame_index: 1-based frame
        x, y, width, height: optional region (width>0 & height>0 to scope)
lint_spritetool Find mistakes that are easy to miss by eye, with exact coordinates.ProcessesEnv vars
Find mistakes that are easy to miss by eye, with exact coordinates.

    Reports:
    - detached: groups of pixels not connected to the main shape (diagonals
      count as connected), e.g. a mug handle or leaf floating off its object
    - lone_pixels: single opaque pixels with no opaque neighbour at all
    - orphan_pixels: pixels whose colour matches none of their 8 neighbours,
      the usual stray pixel in a fill or shading band (a deliberate 1 px
      detail such as an eye glint also shows up here: check, don't blindly fix)

    Run it on one layer for objects drawn on their own layer; on a full
    scene everything touches the background, so only orphans are useful.

    Args:
        filename: Aseprite file to check
        frame_index: Frame to check, starting at 1 (default 1)
        layer_name: Check only this layer (or group); "" checks all visible layers

    Returns:
        JSON with counts and up to 50 entries per list, smallest pieces first.
list_convolution_matricestool List the built-in convolution-matrix names usable with apply_convolution.
List the built-in convolution-matrix names usable with apply_convolution.

    Returns:
        JSON array of matrix resource names.
list_palette_presetstool List the built-in retro palette presets with their colors.
List the built-in retro palette presets with their colors.

    Returns:
        JSON object mapping preset name to its list of hex colors.
list_slicestool List all slices with their bounds, 9-patch centers, and pivots.ProcessesEnv vars
List all slices with their bounds, 9-patch centers, and pivots.

    Returns:
        JSON array of {name, x, y, width, height, center?, pivot?}.
list_text_fontstool List fonts that draw_text can use.
List fonts that draw_text can use.

    Covers bitmap sprite-sheet fonts and .ttf/.otf files installed under
    ~/.aseprite-mcp/fonts, plus TrueType fonts found in the system font
    directories. Bitmap fonts are the right choice for pixel art: their
    glyphs are already pixels and `size` scales them by whole numbers.
measure_texttool Measure text without drawing it.
Measure text without drawing it.

    Use this to size a panel or centre a label in one shot instead of
    guessing and re-rendering.

    Args:
        text: The string to measure
        font: Font name from list_text_fonts, or a path to a .ttf/.otf or
            bitmap font directory
        size: Pixel size for TrueType fonts; integer scale factor for bitmap
            fonts (default 1)
        letter_spacing: Extra pixels between glyphs (default 0)
        bold: Faux-bold passes; each grows strokes by 1px (default 0)
        antialias: Keep greyscale edges instead of hard pixels (default False)

    Returns:
        width, height, advance_width, and the ink extents above/below the
        baseline.
merge_layer_downtool Merge a layer into the layer directly below it.ProcessesEnv vars
Merge a layer into the layer directly below it.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to merge down (must not be the bottom layer)
move_regiontool Cut a rectangular region of pixels and paste it at a new position.ProcessesEnv vars
Cut a rectangular region of pixels and paste it at a new position.

    Coordinates are sprite-global. The source area is left transparent.
    Pixels moved outside the canvas are discarded. Fully transparent
    source pixels do not overwrite destination pixels.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        x: Left edge of the source region
        y: Top edge of the source region
        width: Region width
        height: Region height
        dest_x: New left edge for the region
        dest_y: New top edge for the region
offset_cel_positionstool Offset cel positions by a delta across a frame range.ProcessesEnv vars
Offset cel positions by a delta across a frame range.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        start_frame: Starting frame index (1-based)
        end_frame: Ending frame index (1-based, inclusive)
        dx: X delta in pixels
        dy: Y delta in pixels
oscillate_cel_positionstool Oscillate cel positions across a frame range using a sine wave.ProcessesEnv vars
Oscillate cel positions across a frame range using a sine wave.
outline_celtool Add a 1px outline around all opaque pixels of a cel.ProcessesEnv vars
Add a 1px outline around all opaque pixels of a cel.

    Transparent pixels adjacent to opaque pixels are filled with the
    outline color. Great for making sprites read clearly against any
    background.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to outline
        frame_index: Frame index starting at 1
        color: Outline hex color (default black)
        include_diagonals: Also outline diagonal neighbors for a thicker,
            rounded outline (default False)
        region: Outline only the shapes inside "x,y,w,h" (sprite pixels),
            e.g. one object on a layer that holds several; the outline may
            land 1 px outside the region. "" outlines the whole cel
outline_nativetool Native Aseprite Outline around opaque pixels (app.command.Outline).ProcessesEnv vars
Native Aseprite Outline around opaque pixels (app.command.Outline).

    Higher quality than the 1px hand-rolled outline_cel: inside/outside
    placement + a circle/square brush. Works best on a full-canvas cel.

    Args:
        filename: Aseprite file to modify
        layer_name: layer to outline (empty = active layer)
        frame_index: 1-based frame
        color: outline colour as #RRGGBB
        place: "outside" or "inside"
        matrix: "circle" or "square"
propagate_celstool Copy cels from a source frame to a range of frames for specific layers.ProcessesEnv vars
Copy cels from a source frame to a range of frames for specific layers.

    Args:
        filename: Name of the Aseprite file to modify
        layer_names: List of layer names to copy
        source_frame: Frame index to copy from (1-based)
        start_frame: Start frame index (1-based)
        end_frame: End frame index (1-based, inclusive)
        replace: Whether to overwrite existing cels (default: True)
propagate_frame_to_rangetool Copy all layers from a source frame to a range of frames.ProcessesEnv vars
Copy all layers from a source frame to a range of frames.

    Args:
        filename: Name of the Aseprite file to modify
        source_frame: Frame index to copy from (1-based)
        start_frame: Start frame index (1-based)
        end_frame: End frame index (1-based, inclusive)
        overwrite: Whether to overwrite existing cels (default: True)
quantize_to_palettetool Snap every pixel to the nearest color in the sprite's palette.ProcessesEnv vars
Snap every pixel to the nearest color in the sprite's palette.

    Walks the chosen cels and replaces each opaque pixel with the
    closest palette color (RGB distance). Run after apply_palette_preset
    or set_palette to make existing art conform to the palette.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to quantize (empty = all top-level layers)
        start_frame: First frame to process (default 1)
        end_frame: Last frame to process (default 0 = last frame)
read_rowstool Read a region as rows of characters plus a colour legend.ProcessesEnv vars
Read a region as rows of characters plus a colour legend.

    The compact way to read pixels: one string per row, one character per
    pixel, "." for transparent. The output can be edited and passed straight
    back to draw_rows (same rows and legend) to change a few pixels.

    Args:
        filename: Aseprite file to read
        x: Left of the region (sprite pixels)
        y: Top of the region (sprite pixels)
        width: Region width
        height: Region height (width * height at most 16384)
        frame_index: Frame index starting at 1
        layer_name: Read only this layer (or group); "" reads what is
            visible, all layers composited

    Returns:
        JSON with x, y, width, height, rows and legend.
remap_colors_in_cel_rangetool Remap colors in a layer across a frame range using explicit mappings.ProcessesEnv vars
Remap colors in a layer across a frame range using explicit mappings.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to remap colors in.
        start_frame (int): The start frame index to remap colors in.
        end_frame (int): The end frame index to remap colors in.
        mappings (List[dict]): The color mappings to use.
        create_missing_cels (bool, optional): Whether to create missing cels. Defaults to False.
        source_frame_index (int | None, optional): The source frame index to use for remapping. Defaults to None.
rename_layertool Rename a layer.ProcessesEnv vars
Rename a layer.

    Args:
        filename: Aseprite file to modify
        layer_name: Current layer name
        new_name: New layer name
render_onion_skintool Render a frame with neighboring frames as translucent onion-skin ghosts.ProcessesEnv vars
Render a frame with neighboring frames as translucent onion-skin ghosts.

    Produces a PNG of the given frame composited over ghosted copies of
    the surrounding frames — the batch-mode equivalent of Aseprite's
    onion skinning. Essential for checking motion continuity while
    animating: export it, open the PNG, and verify the in-between
    positions line up.

    Args:
        filename: Aseprite file to read
        frame_index: Frame to render, starting at 1
        output_filename: Output PNG path
        before: Number of previous frames to ghost (default 1)
        after: Number of following frames to ghost (default 1)
        scale: Integer nearest-neighbor scale factor (default 4)
        ghost_opacity: Opacity of ghost frames, 0-255 (default 100)
reorder_layertool Move a layer to a new position in the layer stack.ProcessesEnv vars
Move a layer to a new position in the layer stack.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to move
        position: Target stack position, 1-based where 1 is the bottom layer
replace_colortool Replace one color with another in a cel, preserving alpha.ProcessesEnv vars
Replace one color with another in a cel, preserving alpha.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        from_color: Hex color to replace, e.g. "#FF0000"
        to_color: Replacement hex color
        tolerance: Per-channel tolerance 0-255 (default 0 = exact match)
resize_canvastool Scale the canvas and all its content to new dimensions.ProcessesEnv vars
Scale the canvas and all its content to new dimensions.

    Args:
        filename: Aseprite file to modify
        width: New canvas width in pixels
        height: New canvas height in pixels
rotate_layertool Rotate a layer's image 90, 180, or 270 degrees clockwise.ProcessesEnv vars
Rotate a layer's image 90, 180, or 270 degrees clockwise.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer name to rotate
        frame_index: Frame index starting at 1
        angle: Rotation angle: 90, 180, or 270 (clockwise)
run_lua_scripttool Execute arbitrary Aseprite Lua code in batch mode (last resort).ProcessesEnv vars
Execute arbitrary Aseprite Lua code in batch mode (last resort).

    Reach for a dedicated tool first: draw_rows / read_rows to place and
    read pixels as text, draw_text for numbers and labels, replace_color or
    remap_colors_in_cel_range to recolour, export_animation or export_tag
    for GIFs, compare_frames and get_bounds to measure motion, view_sprite
    to look. Use Lua only for what none of them covers, such as a custom
    procedural effect. The full API is documented at
    https://www.aseprite.org/api/.

    Essentials for batch-mode scripts:
    - When filename is given, it is opened first and available as
      app.activeSprite.
    - Changes are NOT saved automatically; call spr:saveAs(spr.filename)
      at the end if you modified the sprite.
    - print() is the only way to return data; a clean exit does not mean
      your logic succeeded, so print what you need to verify.
    - Coordinates on cel images are cel-local: offset sprite-global
      coordinates by cel.position before getPixel/putPixel.

    WARNING: this executes unrestricted code (including io/os access)
    on the host running Aseprite. Only pass scripts you trust.

    Args:
        script: Lua source code to execute
        filename: Optional Aseprite file to open before running
set_cel_opacitytool Set the opacity of a single cel (0-255).ProcessesEnv vars
Set the opacity of a single cel (0-255).

    Args:
        filename: Aseprite file to modify
        layer_name: Layer containing the cel
        frame_index: Frame index starting at 1
        opacity: Opacity 0 (transparent) to 255 (opaque)
set_cel_positiontool Set a cel's position in a specific layer and frame.ProcessesEnv vars
Set a cel's position in a specific layer and frame.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        frame_index: Frame index starting at 1
        x: X position in pixels
        y: Y position in pixels
        create_if_missing: Create the cel if it does not exist
        source_frame_index: Optional frame to copy the cel image from
set_color_modetool Convert the sprite's color mode.ProcessesEnv vars
Convert the sprite's color mode.

    Args:
        filename: Aseprite file to modify
        mode: "rgb", "grayscale", or "indexed"
set_frametool Set the active frame by index (1-based).ProcessesEnv vars
Set the active frame by index (1-based).

    Args:
        filename: Name of the Aseprite file to modify
        frame_index: Frame index starting at 1
set_frame_durationtool Set the duration of a frame in milliseconds.ProcessesEnv vars
Set the duration of a frame in milliseconds.

    Args:
        filename: Name of the Aseprite file to modify
        frame_index: Frame index starting at 1
        duration_ms: Duration in milliseconds
set_frame_duration_alltool Set the duration of all frames in milliseconds.ProcessesEnv vars
Set the duration of all frames in milliseconds.

    Args:
        filename: Name of the Aseprite file to modify
        duration_ms: Duration in milliseconds
set_layertool Set the active layer by name.ProcessesEnv vars
Set the active layer by name.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to activate
        create_if_missing: Create layer if it does not exist
set_layer_blend_modetool Set a layer's blend mode.ProcessesEnv vars
Set a layer's blend mode.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to modify
        mode: One of: normal, darken, multiply, color_burn, lighten, screen,
            color_dodge, addition, overlay, soft_light, hard_light,
            difference, exclusion, subtract, divide, hue, saturation,
            color, luminosity
set_layer_opacitytool Set layer opacity by name (0-255).ProcessesEnv vars
Set layer opacity by name (0-255).

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        opacity: Opacity value 0-255
set_layer_visibilitytool Set layer visibility by name.ProcessesEnv vars
Set layer visibility by name.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        visible: Whether the layer should be visible
set_onion_skintool Configure onion skin settings for Aseprite.
Configure onion skin settings for Aseprite.
set_palettetool Set the active sprite palette using a list of hex colors.ProcessesEnv vars
Set the active sprite palette using a list of hex colors.
set_slice_centertool Set a slice's 9-patch center rectangle (relative to the slice origin).ProcessesEnv vars
Set a slice's 9-patch center rectangle (relative to the slice origin).

    The center defines the stretchable region for 9-patch scaling in
    game engines.

    Args:
        filename: Aseprite file to modify
        name: Slice name
        x: Center-rect left edge, relative to the slice
        y: Center-rect top edge, relative to the slice
        width: Center-rect width
        height: Center-rect height
set_slice_pivottool Set a slice's pivot point (relative to the slice origin).ProcessesEnv vars
Set a slice's pivot point (relative to the slice origin).

    Args:
        filename: Aseprite file to modify
        name: Slice name
        x: Pivot x, relative to the slice
        y: Pivot y, relative to the slice
set_tagtool Create or update an animation tag on the sprite.ProcessesEnv vars
Create or update an animation tag on the sprite.

    direction: forward | reverse | pingpong | pingpong_reverse
set_tilestool Place tiles on a tilemap layer by grid position.ProcessesEnv vars
Place tiles on a tilemap layer by grid position.

    Args:
        filename: Aseprite file to modify
        layer_name: Tilemap layer to edit
        frame_index: Frame index starting at 1
        tiles: List of {"col": int, "row": int, "tile_index": int}
            (col/row are grid coordinates; tile_index 0 clears the cell)
start_preview_servertool Start a simple HTTP server to preview exported sprites.ProcessesFilesoutside text
Start a simple HTTP server to preview exported sprites.

    Args:
        directory: Directory to serve
        port: Port to bind (default 8000)
stop_preview_servertool Stop the preview HTTP server for a given port.ProcessesFilesoutside text
Stop the preview HTTP server for a given port.

    Args:
        port: Port to stop (default 8000)
tween_cel_opacity_easedtool Tween cel opacity with easing across a frame range.ProcessesEnv vars
Tween cel opacity with easing across a frame range.
tween_cel_positionstool Tween cel positions linearly across a frame range.ProcessesEnv vars
Tween cel positions linearly across a frame range.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        start_frame: Starting frame index (1-based)
        end_frame: Ending frame index (1-based, inclusive)
        start_x: Starting X position in pixels
        start_y: Starting Y position in pixels
        end_x: Ending X position in pixels
        end_y: Ending Y position in pixels
        create_missing_cels: Create missing cels during tween
        source_frame_index: Optional frame to copy the cel image from
tween_cel_positions_easedtool Tween cel positions with easing across a frame range.ProcessesEnv vars
Tween cel positions with easing across a frame range.
tween_cel_scale_easedtool Tween cel scale with easing across a frame range.ProcessesEnv vars
Tween cel scale with easing across a frame range.
validate_scenetool Validate presence of layers and cels across a frame range.ProcessesEnv vars
Validate presence of layers and cels across a frame range.

    Returns JSON with missing layers and missing cels.

Text the model reads (123)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

render_onion_skin tool
Render a frame with neighboring frames as translucent onion-skin ghosts.

    Produces a PNG of the given frame composited over ghosted copies of
    the surrounding frames — the batch-mode equivalent of Aseprite's
    onion skinning. Essential for checking motion continuity while
    animating: export it, open the PNG, and verify the in-between
    positions line up.

    Args:
        filename: Aseprite file to read
        frame_index: Frame to render, starting at 1
        output_filename: Output PNG path
        before: Number of previous frames to ghost (default 1)
        after: Number of following frames to ghost (default 1)
        scale: Integer nearest-neighbor scale factor (default 4)
        ghost_opacity: Opacity of ghost frames, 0-255 (default 100)
compare_frames tool
Compare two frames and report how much they differ.

    Renders both frames as you see them (visible layers only) and diffs
    them pixel by pixel. Use while animating to confirm a frame actually
    changed, or that it did not change too much.

    Args:
        filename: Aseprite file to read
        frame_a: First frame index, starting at 1
        frame_b: Second frame index, starting at 1
        layer_name: Compare only this layer (or group), e.g. the character
            without the effects around it; "" compares all visible layers
        region: Compare only "x,y,w,h" (sprite pixels), e.g. the legs, to
            prove that part did or did not move; "" compares the whole frame

    Returns:
        JSON with changed pixel count, total pixels, percent changed,
        and the bounding box of the changed region.
get_bounds tool
Report where the drawn pixels are in each frame: their bounding box.

    Use while animating to measure instead of eyeballing: that rise and
    fall frames mirror each other, that the feet stay on the ground line,
    that a character never leaves the canvas.

    Args:
        filename: Aseprite file to read
        layer_name: Measure only this layer (or group); "" measures all
            visible layers together
        frames: Frames to measure, 1-based: "3", "1-4" or "1,3,6-8";
            "" measures every frame

    Returns:
        JSON with one entry per frame: x, y, width, height of the
        non-transparent pixels, or "empty": true for a blank frame.
get_color_stats tool
Report the colors used in a frame and how often each appears.

    Flattens the sprite (non-destructively) and histograms the frame.
    Use to check palette discipline: too many near-duplicate colors is
    a common pixel-art mistake.

    Args:
        filename: Aseprite file to read
        frame_index: Frame to analyze, starting at 1 (default 1)
        top: How many of the most-used colors to list (default 16)

    Returns:
        JSON with unique color count, opaque pixel count, and the top
        colors with usage counts.
lint_sprite tool
Find mistakes that are easy to miss by eye, with exact coordinates.

    Reports:
    - detached: groups of pixels not connected to the main shape (diagonals
      count as connected), e.g. a mug handle or leaf floating off its object
    - lone_pixels: single opaque pixels with no opaque neighbour at all
    - orphan_pixels: pixels whose colour matches none of their 8 neighbours,
      the usual stray pixel in a fill or shading band (a deliberate 1 px
      detail such as an eye glint also shows up here: check, don't blindly fix)

    Run it on one layer for objects drawn on their own layer; on a full
    scene everything touches the background, so only orphans are useful.

    Args:
        filename: Aseprite file to check
        frame_index: Frame to check, starting at 1 (default 1)
        layer_name: Check only this layer (or group); "" checks all visible layers

    Returns:
        JSON with counts and up to 50 entries per list, smallest pieces first.
add_frames tool
Add multiple frames to a sprite and optionally set their duration.

    Args:
        filename: Name of the Aseprite file to modify
        count: Number of frames to add
        duration_ms: Optional duration for each new frame in milliseconds
set_frame_duration_all tool
Set the duration of all frames in milliseconds.

    Args:
        filename: Name of the Aseprite file to modify
        duration_ms: Duration in milliseconds
set_layer_visibility tool
Set layer visibility by name.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        visible: Whether the layer should be visible
set_layer_opacity tool
Set layer opacity by name (0-255).

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        opacity: Opacity value 0-255
get_sprite_info tool
Return sprite info as JSON string (size, color mode, frame durations, layers, tags).

    Args:
        filename: Name of the Aseprite file to inspect
duplicate_frame_range tool
Duplicate a frame range and append copies to the end.

    Args:
        filename: Name of the Aseprite file to modify
        start_frame: Starting frame index (1-based)
        end_frame: Ending frame index (1-based, inclusive)
        times: Number of times to append the range (default: 1)
set_cel_position tool
Set a cel's position in a specific layer and frame.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        frame_index: Frame index starting at 1
        x: X position in pixels
        y: Y position in pixels
        create_if_missing: Create the cel if it does not exist
        source_frame_index: Optional frame to copy the cel image from
tween_cel_positions tool
Tween cel positions linearly across a frame range.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        start_frame: Starting frame index (1-based)
        end_frame: Ending frame index (1-based, inclusive)
        start_x: Starting X position in pixels
        start_y: Starting Y position in pixels
        end_x: Ending X position in pixels
        end_y: Ending Y position in pixels
        create_missing_cels: Create missing cels during tween
        source_frame_index: Optional frame to copy the cel image from
offset_cel_positions tool
Offset cel positions by a delta across a frame range.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        start_frame: Starting frame index (1-based)
        end_frame: Ending frame index (1-based, inclusive)
        dx: X delta in pixels
        dy: Y delta in pixels
create_cel tool
Create an empty cel on a layer/frame.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        frame_index: Frame index starting at 1
        x: X position in pixels
        y: Y position in pixels
clear_cel tool
Delete a cel on a layer/frame.
copy_cel tool
Copy a cel from one frame to another.
copy_frame tool
Copy all cels from a source frame to a target frame (or append).
propagate_frame_to_range tool
Copy all layers from a source frame to a range of frames.

    Args:
        filename: Name of the Aseprite file to modify
        source_frame: Frame index to copy from (1-based)
        start_frame: Start frame index (1-based)
        end_frame: End frame index (1-based, inclusive)
        overwrite: Whether to overwrite existing cels (default: True)
set_tag tool
Create or update an animation tag on the sprite.

    direction: forward | reverse | pingpong | pingpong_reverse
set_onion_skin tool
Configure onion skin settings for Aseprite.
propagate_cels tool
Copy cels from a source frame to a range of frames for specific layers.

    Args:
        filename: Name of the Aseprite file to modify
        layer_names: List of layer names to copy
        source_frame: Frame index to copy from (1-based)
        start_frame: Start frame index (1-based)
        end_frame: End frame index (1-based, inclusive)
        replace: Whether to overwrite existing cels (default: True)
tween_cel_positions_eased tool
Tween cel positions with easing across a frame range.
oscillate_cel_positions tool
Oscillate cel positions across a frame range using a sine wave.
tween_cel_opacity_eased tool
Tween cel opacity with easing across a frame range.
tween_cel_scale_eased tool
Tween cel scale with easing across a frame range.
delete_frame tool
Delete a frame by index.

    Args:
        filename: Aseprite file to modify
        frame_index: Frame index starting at 1
delete_tag tool
Delete an animation tag by name.

    Args:
        filename: Aseprite file to modify
        name: Tag name to delete
set_cel_opacity tool
Set the opacity of a single cel (0-255).

    Args:
        filename: Aseprite file to modify
        layer_name: Layer containing the cel
        frame_index: Frame index starting at 1
        opacity: Opacity 0 (transparent) to 255 (opaque)
create_canvas tool
Create a new Aseprite canvas with specified dimensions.

    Args:
        width: Width of the canvas in pixels
        height: Height of the canvas in pixels
        filename: Name of the output file (default: canvas.aseprite)
add_layer tool
Add a new layer to the Aseprite file.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Name of the new layer
        group: Optional group to place the new layer inside, by name or
            "group/subgroup" path (default: top level)
add_group tool
Add a new, empty group layer.

    Combine with add_layer(group=...) / duplicate_layer(group=...) to build a
    grouped layer structure.

    Args:
        filename: Name of the Aseprite file to modify
        group_name: Name of the new group
        parent_group: Optional existing group to nest the new group inside, by
            name or "group/subgroup" path (default: top level)
add_frame tool
Add a new frame to the Aseprite file.

    Args:
        filename: Name of the Aseprite file to modify
set_frame tool
Set the active frame by index (1-based).

    Args:
        filename: Name of the Aseprite file to modify
        frame_index: Frame index starting at 1
set_frame_duration tool
Set the duration of a frame in milliseconds.

    Args:
        filename: Name of the Aseprite file to modify
        frame_index: Frame index starting at 1
        duration_ms: Duration in milliseconds
set_layer tool
Set the active layer by name.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to activate
        create_if_missing: Create layer if it does not exist
draw_pixels tool
Draw pixels on the canvas with specified colors.

    Args:
        filename: Name of the Aseprite file to modify
        pixels: List of pixel data, each containing:
            {"x": int, "y": int, "color": str}
            where color is a hex code like "#FF0000"
draw_line tool
Draw a line on the canvas.

    Args:
        filename: Name of the Aseprite file to modify
        x1: Starting x coordinate
        y1: Starting y coordinate
        x2: Ending x coordinate
        y2: Ending y coordinate
        color: Hex color code (default: "#000000")
        thickness: Line thickness in pixels (default: 1)
draw_rectangle tool
Draw a rectangle on the canvas.

    Args:
        filename: Name of the Aseprite file to modify
        x: Top-left x coordinate
        y: Top-left y coordinate
        width: Width of the rectangle in pixels (must be > 0)
        height: Height of the rectangle in pixels (must be > 0)
        color: Hex color code (default: "#000000")
        fill: Whether to fill the rectangle (default: False)
fill_area tool
Fill an area with color using the paint bucket tool.

    Args:
        filename: Name of the Aseprite file to modify
        x: X coordinate to fill from
        y: Y coordinate to fill from
        color: Hex color code (default: "#000000")
draw_circle tool
Draw a circle on the canvas.

    Args:
        filename: Name of the Aseprite file to modify
        center_x: X coordinate of circle center
        center_y: Y coordinate of circle center
        radius: Radius of the circle in pixels
        color: Hex color code (default: "#000000")
        fill: Whether to fill the circle (default: False)
draw_pixels_at tool
Draw pixels on a specific layer/frame.

    Args:
        filename: Name of the Aseprite file to modify
        layer_name: Layer name to target
        frame_index: Frame index starting at 1
        pixels: List of pixel data with x/y/color
        create_if_missing: Create cel if it does not exist
draw_line_at tool
Draw a line on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x1 (int): The x coordinate of the first point of the line.
        y1 (int): The y coordinate of the first point of the line.
        x2 (int): The x coordinate of the second point of the line.
        y2 (int): The y coordinate of the second point of the line.
        color (str, optional): The color to draw the line with. Defaults to "#000000".
        thickness (int, optional): The thickness of the line. Defaults to 1.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_rectangle_at tool
Draw a rectangle on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x (int): The x coordinate of the top-left corner of the rectangle.
        y (int): The y coordinate of the top-left corner of the rectangle.
        width (int): The width of the rectangle.
        height (int): The height of the rectangle.
        color (str, optional): The color to draw the rectangle with. Defaults to "#000000".
        fill (bool, optional): Whether to fill the rectangle. Defaults to False.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_circle_at tool
Draw a circle on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        center_x (int): The x coordinate of the center of the circle.
        center_y (int): The y coordinate of the center of the circle.
        radius (int): The radius of the circle.
        color (str, optional): The color to draw the circle with. Defaults to "#000000".
        fill (bool, optional): Whether to fill the circle. Defaults to False.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
fill_area_at tool
Fill an area on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x (int): The x coordinate of the point to start filling from.
        y (int): The y coordinate of the point to start filling from.
        color (str, optional): The color to fill the area with. Defaults to "#000000".
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_polygon tool
Draw a polygon on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        points (List[Dict[str, int]]): The list of points to draw the polygon.
        color (str, optional): The color to draw the polygon with. Defaults to "#000000".
        fill (bool, optional): Whether to fill the polygon. Defaults to False.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_path tool
Draw a path using a polyline on a specific layer/frame.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        points (List[Dict[str, int]]): The points to draw the path with.
        color (str, optional): The color to draw the path with. Defaults to "#000000".
        thickness (int, optional): The thickness of the path. Defaults to 1.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
apply_gradient_rect tool
Apply a linear gradient fill to a rectangle.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to draw on.
        frame_index (int): The index of the frame to draw on.
        x (int): The x coordinate of the rectangle to draw on.
        y (int): The y coordinate of the rectangle to draw on.
        width (int): The width of the rectangle to draw on.
        height (int): The height of the rectangle to draw on.
        color_start (str): The start color of the gradient.
        color_end (str): The end color of the gradient.
        horizontal (bool, optional): Whether to draw the gradient horizontally. Defaults to True.
        create_if_missing (bool, optional): Whether to create the layer if it doesn't exist. Defaults to True.
draw_ellipse_at tool
Draw an ellipse on a specific layer/frame.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        center_x: Ellipse center x
        center_y: Ellipse center y
        radius_x: Horizontal radius in pixels
        radius_y: Vertical radius in pixels
        color: Hex color code (default "#000000")
        fill: Fill the ellipse instead of outlining it
        create_if_missing: Create the cel if it does not exist
draw_rows tool
Draw pixels from rows of characters, like ASCII art: one character per pixel.

    The compact way to place hand-chosen pixels (faces, hands, animals,
    handles, any detail under ~12 px), far smaller than a pixel list:

        rows=["..KK..",
              ".KSSK.",
              "KSSSSK"],
        legend={"K": "#1A1C2C", "S": "#F4B41B"}

    Row 1 is drawn at y, its first character at x (sprite pixels). "." or a
    character missing from the legend leaves that pixel untouched; map a
    character to "#00000000" to erase. Read existing pixels back in the same
    format with read_rows, edit the strings, and draw them again.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Left edge of the rows (sprite pixels)
        y: Top edge of the rows (sprite pixels)
        rows: Equal-width strings, top to bottom
        legend: Single character -> hex colour (#RGB, #RRGGBB or #RRGGBBAA)
        outline: Optional hex colour for a 1 px outline around the outside of
            the drawn pixels (sides only, not diagonals), drawn over whatever
            is there, e.g. to separate an object from the scene behind it
        create_if_missing: Create the cel if it does not exist
draw_iso_box tool
Draw a solid box in 2:1 isometric projection, with clean 2-1 edges.

    For furniture, crates, walls and floors in isometric scenes. The three
    visible faces get their own colours (light from the top: top lightest,
    one side mid, the other darkest). Small or organic parts on top of a box
    (handles, cats, hands) are drawn with draw_rows instead.

    Coordinates, in sprite pixels:
        (x, y)  back corner of the box's footprint on the floor
        w       length along the right-down axis: each unit is 2 px right, 1 px down
        d       length along the left-down axis: each unit is 2 px left, 1 px down
        h       height in px; z raises the whole box (e.g. a book on a desk)
    Later boxes draw over earlier ones, so draw back to front.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Back corner x
        y: Back corner y (floor level)
        z: Elevation above the floor in px (0 = on the floor)
        w: Units along the right-down axis (>= 1)
        d: Units along the left-down axis (>= 1)
        h: Height in px (0 = a flat tile)
        top: Hex colour of the top face
        left: Hex colour of the front-left face
        right: Hex colour of the front-right face
        outline: Optional hex colour for a 1 px outline around the box,
            drawn over whatever is there
        create_if_missing: Create the cel if it does not exist
export_sprite tool
Export the Aseprite file to another format.

    Args:
        filename: Name of the Aseprite file to export
        output_filename: Name of the output file
        format: Output format (default: "png", can be "png", "gif", "jpg", etc.)
copy_sprite tool
Copy a sprite to a new Aseprite file.

    Args:
        filename: Name of the Aseprite file to copy
        output_filename: Name of the output .aseprite file
        overwrite: Whether to overwrite if output exists
export_frame tool
Export a single frame as a PNG, optionally scaled up.

    To look at your work while drawing, use view_sprite instead: it returns
    the image directly, with a pixel grid and coordinate rulers.

    Args:
        filename: Aseprite file to export
        frame_index: Frame index starting at 1
        output_filename: Output PNG path
        scale: Integer nearest-neighbor scale factor (default 1)
export_spritesheet tool
Export frames as a sprite sheet, optionally with a JSON data file.

    Args:
        filename: Aseprite file to export
        output_filename: Output sheet image path (PNG)
        sheet_type: Layout: "horizontal", "vertical", "rows", "columns", or "packed"
        data_filename: Optional path for a JSON metadata file
        scale: Integer scale factor applied before packing (default 1)
        padding: Padding in pixels between frames (default 0)
        tag_name: Only include frames of this animation tag (default: all frames)
        data_format: JSON format for the data file: "json-array" (default) or "json-hash"
        list_tags: Include animation tag metadata in the JSON data file (default: False)
export_layers tool
Export each layer as its own PNG file named <layer>.png.

    Args:
        filename: Aseprite file to export
        output_directory: Directory for the per-layer PNGs (created if missing)
        include_hidden: Also export hidden layers (default False)
export_tag tool
Export the frames of an animation tag as a GIF or PNG sequence.

    Args:
        filename: Aseprite file to export
        tag_name: Animation tag to export
        output_filename: Output path; .gif gives an animation, .png a sequence
        scale: Integer scale factor (default 1)
export_animation tool
Export the animation for sharing: a GIF (or PNG sequence), scaled, on a background.

    The sprite itself is never changed: the background is added to a
    temporary copy. Use this instead of a Lua saveCopyAs for previews.

    Args:
        filename: Aseprite file to export
        output_filename: Output path; .gif gives an animation, .png a numbered sequence
        tag: Export only this animation tag; "" exports every frame
        scale: Integer nearest-neighbour scale factor, 1-64 (default 1)
        background: Optional hex colour filled behind every frame, e.g.
            "#E9EEF2" so a dark outline reads in any viewer; "" keeps transparency
import_image_as_layer tool
Import an image file (PNG, etc.) into a layer of the sprite.

    Useful for bringing in reference images or composing pre-made parts.
    The layer is created if it does not exist. Works best when the sprite
    is in RGB color mode.

    Args:
        filename: Aseprite file to modify
        image_path: Image file to import
        layer_name: Layer to place the image on
        frame_index: Frame index starting at 1 (default 1)
        x: X position for the image's top-left corner (default 0)
        y: Y position for the image's top-left corner (default 0)
outline_cel tool
Add a 1px outline around all opaque pixels of a cel.

    Transparent pixels adjacent to opaque pixels are filled with the
    outline color. Great for making sprites read clearly against any
    background.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to outline
        frame_index: Frame index starting at 1
        color: Outline hex color (default black)
        include_diagonals: Also outline diagonal neighbors for a thicker,
            rounded outline (default False)
        region: Outline only the shapes inside "x,y,w,h" (sprite pixels),
            e.g. one object on a layer that holds several; the outline may
            land 1 px outside the region. "" outlines the whole cel
replace_color tool
Replace one color with another in a cel, preserving alpha.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        from_color: Hex color to replace, e.g. "#FF0000"
        to_color: Replacement hex color
        tolerance: Per-channel tolerance 0-255 (default 0 = exact match)
adjust_hsl tool
Shift hue, saturation, and lightness of all opaque pixels in a cel.

    Useful for creating palette-swapped variants and shading: e.g. darken
    a duplicated layer for shadows or hue-shift toward blue for night
    scenes.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to adjust
        frame_index: Frame index starting at 1
        hue_shift: Degrees to rotate hue, -360 to 360
        saturation_shift: Saturation delta, -100 to 100
        lightness_shift: Lightness delta, -100 to 100
apply_dither_gradient tool
Fill a rectangle with a two-color gradient using Bayer 4x4 ordered dithering.

    This is the classic pixel-art way to blend two colors without
    introducing new intermediate colors. The gradient runs from
    color_start (top/left) to color_end (bottom/right).

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Left edge of the rectangle
        y: Top edge of the rectangle
        width: Rectangle width
        height: Rectangle height
        color_start: Hex color at the start of the gradient
        color_end: Hex color at the end of the gradient
        horizontal: Run the gradient left-to-right instead of top-to-bottom
        create_if_missing: Create the cel if it does not exist
apply_dither_pattern tool
Fill a rectangle with a uniform Bayer-dithered mix of two colors.

    density controls the ratio: 0.0 = all color_a, 0.5 = checkerboard,
    1.0 = all color_b. Useful for textures (stone, grass) and flat
    mid-tones between two palette colors.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to draw on
        frame_index: Frame index starting at 1
        x: Left edge of the rectangle
        y: Top edge of the rectangle
        width: Rectangle width
        height: Rectangle height
        color_a: Base hex color
        color_b: Mixed-in hex color
        density: Fraction of color_b, 0.0-1.0 (default 0.5)
        create_if_missing: Create the cel if it does not exist
animation_workflow_guide tool
Return a concise English guide for animating pixel art well.

    Read it before animating. use_case: "character" (people, creatures,
    attacks, jumps, walks), "idle" (idle and breathing loops, including a
    fighter's ready stance between attacks), "environment" (scenes,
    backgrounds, effects) or anything else for general advice.
delete_layer tool
Delete a layer by name.

    Args:
        filename: Aseprite file to modify
        layer_name: Name of the layer to delete
rename_layer tool
Rename a layer.

    Args:
        filename: Aseprite file to modify
        layer_name: Current layer name
        new_name: New layer name
duplicate_layer tool
Duplicate a layer with all its cels across every frame.

    The copy inherits the source's opacity and blend mode. By default it is
    placed directly above the source layer; pass `group` to place it inside a
    group instead.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to duplicate, by name or "group/subgroup/layer" path
        new_name: Name for the copy (default: "<layer_name> copy")
        group: Optional group to place the copy inside, by name or
            "group/subgroup" path (default: directly above the source)
reorder_layer tool
Move a layer to a new position in the layer stack.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to move
        position: Target stack position, 1-based where 1 is the bottom layer
set_layer_blend_mode tool
Set a layer's blend mode.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to modify
        mode: One of: normal, darken, multiply, color_burn, lighten, screen,
            color_dodge, addition, overlay, soft_light, hard_light,
            difference, exclusion, subtract, divide, hue, saturation,
            color, luminosity
merge_layer_down tool
Merge a layer into the layer directly below it.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to merge down (must not be the bottom layer)
flatten_sprite tool
Flatten all layers into a single layer.

    Args:
        filename: Aseprite file to modify
outline_native tool
Native Aseprite Outline around opaque pixels (app.command.Outline).

    Higher quality than the 1px hand-rolled outline_cel: inside/outside
    placement + a circle/square brush. Works best on a full-canvas cel.

    Args:
        filename: Aseprite file to modify
        layer_name: layer to outline (empty = active layer)
        frame_index: 1-based frame
        color: outline colour as #RRGGBB
        place: "outside" or "inside"
        matrix: "circle" or "square"
adjust_hsl_native tool
Native Hue/Saturation/Lightness filter (engine-quality vs adjust_hsl).

    Args:
        filename: Aseprite file to modify
        layer_name: layer to adjust (empty = active layer)
        frame_index: 1-based frame
        hue: -180..180 (degrees)
        saturation: -100..100
        lightness: -100..100
        x, y, width, height: optional region (width>0 & height>0 to scope)
adjust_brightness_contrast tool
Native Brightness/Contrast filter (app.command.BrightnessContrast).

    Args:
        filename: Aseprite file to modify
        layer_name: layer to adjust (empty = active layer)
        frame_index: 1-based frame
        brightness: -100..100
        contrast: -100..100
        x, y, width, height: optional region (width>0 & height>0 to scope)
invert_colors tool
Native colour inversion (app.command.InvertColor).

    Args:
        filename: Aseprite file to modify
        layer_name: layer to invert (empty = active layer)
        frame_index: 1-based frame
        x, y, width, height: optional region (width>0 & height>0 to scope)
apply_convolution tool
Native convolution filter (blur / sharpen / edge / emboss …).

    Args:
        filename: Aseprite file to modify
        matrix: a built-in matrix name (see list_convolution_matrices),
            e.g. "blur-3x3", "sharpen-3x3", "edges-find", "misc-emboss"
        layer_name: layer to filter (empty = active layer)
        frame_index: 1-based frame
        x, y, width, height: optional region (width>0 & height>0 to scope)
list_convolution_matrices tool
List the built-in convolution-matrix names usable with apply_convolution.

    Returns:
        JSON array of matrix resource names.
extract_palette tool
Build an OPTIMAL palette from the sprite via native ColorQuantization.

    True palette extraction (vs the nearest-snap quantize_to_palette): writes
    the resulting palette to the sprite and returns it. NOTE: mutates the
    sprite's palette. Sprite must be in RGB mode.

    Args:
        filename: Aseprite file to modify
        max_colors: palette size cap, 1..256 (fewer if the art has fewer)
        with_alpha: include alpha when quantizing

    Returns:
        JSON {colors: [#RRGGBB, ...], count}
get_palette tool
Get the active sprite palette as a JSON array of hex colors.
set_palette tool
Set the active sprite palette using a list of hex colors.
remap_colors_in_cel_range tool
Remap colors in a layer across a frame range using explicit mappings.

    Args:
        filename (str): The path to the Aseprite file.
        layer_name (str): The name of the layer to remap colors in.
        start_frame (int): The start frame index to remap colors in.
        end_frame (int): The end frame index to remap colors in.
        mappings (List[dict]): The color mappings to use.
        create_missing_cels (bool, optional): Whether to create missing cels. Defaults to False.
        source_frame_index (int | None, optional): The source frame index to use for remapping. Defaults to None.
list_palette_presets tool
List the built-in retro palette presets with their colors.

    Returns:
        JSON object mapping preset name to its list of hex colors.
apply_palette_preset tool
Set the sprite palette to a built-in retro preset.

    This only sets the palette; existing pixels keep their colors.
    Use quantize_to_palette afterwards to snap pixels to the new palette.

    Args:
        filename: Aseprite file to modify
        preset: One of: gameboy, monochrome, grayscale_4, cga, pico8, c64,
            dawnbringer16, dawnbringer32
generate_color_ramp tool
Generate a shading ramp (dark to light) from a base color.

    Produces the standard pixel-art shading technique of hue-shifting:
    shadows lean cooler (hue shifted one way), highlights lean warmer.
    Use the returned colors for shading instead of plain darker/lighter
    versions of the same hue.

    Args:
        base_color: Hex color the ramp is built around, e.g. "#D04648"
        steps: Number of colors in the ramp, 2-16 (default 5)
        hue_shift_degrees: Total hue rotation across the ramp (default 20)
        lightness_range: Total lightness span across the ramp, 0-1 (default 0.5)

    Returns:
        JSON array of hex colors ordered darkest to lightest.
quantize_to_palette tool
Snap every pixel to the nearest color in the sprite's palette.

    Walks the chosen cels and replaces each opaque pixel with the
    closest palette color (RGB distance). Run after apply_palette_preset
    or set_palette to make existing art conform to the palette.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to quantize (empty = all top-level layers)
        start_frame: First frame to process (default 1)
        end_frame: Last frame to process (default 0 = last frame)
set_color_mode tool
Convert the sprite's color mode.

    Args:
        filename: Aseprite file to modify
        mode: "rgb", "grayscale", or "indexed"
get_pixel_color tool
Read the RGBA color of a single pixel.

    Args:
        filename: Aseprite file to read
        x: X coordinate
        y: Y coordinate
        layer_name: Layer to read from (uses active layer when empty)
        frame_index: Frame index starting at 1
get_pixels_rect tool
Read all pixel colors in a rectangular region.

    Args:
        filename: Aseprite file to read
        x: Top-left x coordinate
        y: Top-left y coordinate
        width: Width of the region
        height: Height of the region
        layer_name: Layer to read from (uses active layer when empty)
        frame_index: Frame index starting at 1

    Returns:
        JSON array of {x, y, hex, r, g, b, a} objects
get_composite_pixel tool
Read the RGBA colour VISIBLE at a pixel (flattened composite of all layers).

    Unlike get_pixel_color (which reads a single cel), this composites every
    visible layer — "what the player actually sees" — by flattening a throwaway
    clone. Essential for value/CVD QA on grouped/multi-layer scenes.

    Args:
        filename: Aseprite file to read
        x: X coordinate (sprite-global)
        y: Y coordinate (sprite-global)
        frame_index: Frame index starting at 1
get_composite_rect tool
Read VISIBLE RGBA over a rectangle (flattened composite of all layers).

    The rectangular counterpart of get_composite_pixel — reads the composited
    pixels every visible layer produces, not a single cel.

    Args:
        filename: Aseprite file to read
        x: Top-left x (sprite-global)
        y: Top-left y (sprite-global)
        width: Region width
        height: Region height
        frame_index: Frame index starting at 1

    Returns:
        JSON array of {x, y, hex, r, g, b, a} objects
read_rows tool
Read a region as rows of characters plus a colour legend.

    The compact way to read pixels: one string per row, one character per
    pixel, "." for transparent. The output can be edited and passed straight
    back to draw_rows (same rows and legend) to change a few pixels.

    Args:
        filename: Aseprite file to read
        x: Left of the region (sprite pixels)
        y: Top of the region (sprite pixels)
        width: Region width
        height: Region height (width * height at most 16384)
        frame_index: Frame index starting at 1
        layer_name: Read only this layer (or group); "" reads what is
            visible, all layers composited

    Returns:
        JSON with x, y, width, height, rows and legend.
start_preview_server tool
Start a simple HTTP server to preview exported sprites.

    Args:
        directory: Directory to serve
        port: Port to bind (default 8000)
stop_preview_server tool
Stop the preview HTTP server for a given port.

    Args:
        port: Port to stop (default 8000)
ensure_layers_present tool
Ensure cels exist for layers across a frame range.
validate_scene tool
Validate presence of layers and cels across a frame range.

    Returns JSON with missing layers and missing cels.
audit_animation tool
Audit animation frames for overlaps and out-of-range layer activity.

    overlap_pairs format: ["layerA,layerB", "layerC:layerD"]
    layer_frame_ranges format: ["layer:1-8,17-24", "clouds:1-12"]
    Returns JSON for AI consumption (summary, overlaps, out_of_range, optional cels).
animation_sanitize tool
Normalize animation consistency and optionally apply fixes.

    layer_frame_ranges format: ["layer:1-8,17-24", "clouds:1-12"]
    out_of_range_action: "set_opacity_zero", "delete_cels", "none"
    ignore_full_canvas_overlaps: skip overlap checks when a cel is full canvas
    Returns JSON for AI consumption (summary, layer_stats, alerts, overlaps).
copy_layers_between_sprites tool
Copy layers by name from a source sprite to a target sprite.

    Args:
        source_filename: Source .aseprite file
        target_filename: Target .aseprite file
        layer_names: List of layer names to copy
        replace: Overwrite existing cels in target layers
        create_missing_frames: Add frames to target if needed
run_lua_script tool
Execute arbitrary Aseprite Lua code in batch mode (last resort).

    Reach for a dedicated tool first: draw_rows / read_rows to place and
    read pixels as text, draw_text for numbers and labels, replace_color or
    remap_colors_in_cel_range to recolour, export_animation or export_tag
    for GIFs, compare_frames and get_bounds to measure motion, view_sprite
    to look. Use Lua only for what none of them covers, such as a custom
    procedural effect. The full API is documented at
    https://www.aseprite.org/api/.

    Essentials for batch-mode scripts:
    - When filename is given, it is opened first and available as
      app.activeSprite.
    - Changes are NOT saved automatically; call spr:saveAs(spr.filename)
      at the end if you modified the sprite.
    - print() is the only way to return data; a clean exit does not mean
      your logic succeeded, so print what you need to verify.
    - Coordinates on cel images are cel-local: offset sprite-global
      coordinates by cel.position before getPixel/putPixel.

    WARNING: this executes unrestricted code (including io/os access)
    on the host running Aseprite. Only pass scripts you trust.

    Args:
        script: Lua source code to execute
        filename: Optional Aseprite file to open before running
move_region tool
Cut a rectangular region of pixels and paste it at a new position.

    Coordinates are sprite-global. The source area is left transparent.
    Pixels moved outside the canvas are discarded. Fully transparent
    source pixels do not overwrite destination pixels.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        x: Left edge of the source region
        y: Top edge of the source region
        width: Region width
        height: Region height
        dest_x: New left edge for the region
        dest_y: New top edge for the region
copy_region tool
Copy a rectangular region of pixels to another position, layer, or frame.

    Coordinates are sprite-global. Fully transparent source pixels do not
    overwrite destination pixels. The destination cel is created when missing.

    Args:
        filename: Aseprite file to modify
        layer_name: Source layer
        frame_index: Source frame index starting at 1
        x: Left edge of the source region
        y: Top edge of the source region
        width: Region width
        height: Region height
        dest_x: Left edge of the destination
        dest_y: Top edge of the destination
        target_layer_name: Destination layer (default: same as source)
        target_frame_index: Destination frame (default: same as source)
erase_region tool
Erase (make transparent) a rectangular region of pixels.

    Coordinates are sprite-global.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        x: Left edge of the region
        y: Top edge of the region
        width: Region width
        height: Region height
erase_color tool
Make all pixels of a given color transparent (like a magic eraser).

    Args:
        filename: Aseprite file to modify
        layer_name: Layer to operate on
        frame_index: Frame index starting at 1
        color: Hex color to erase, e.g. "#FF00FF"
        tolerance: Per-channel tolerance 0-255 (default 0 = exact match)
create_slice tool
Create a named slice (a rectangular region usable by game engines).

    Args:
        filename: Aseprite file to modify
        name: Slice name
        x: Left edge of the slice
        y: Top edge of the slice
        width: Slice width
        height: Slice height
set_slice_center tool
Set a slice's 9-patch center rectangle (relative to the slice origin).

    The center defines the stretchable region for 9-patch scaling in
    game engines.

    Args:
        filename: Aseprite file to modify
        name: Slice name
        x: Center-rect left edge, relative to the slice
        y: Center-rect top edge, relative to the slice
        width: Center-rect width
        height: Center-rect height
set_slice_pivot tool
Set a slice's pivot point (relative to the slice origin).

    Args:
        filename: Aseprite file to modify
        name: Slice name
        x: Pivot x, relative to the slice
        y: Pivot y, relative to the slice
list_slices tool
List all slices with their bounds, 9-patch centers, and pivots.

    Returns:
        JSON array of {name, x, y, width, height, center?, pivot?}.
delete_slice tool
Delete a slice by name.

    Args:
        filename: Aseprite file to modify
        name: Slice name to delete
list_text_fonts tool
List fonts that draw_text can use.

    Covers bitmap sprite-sheet fonts and .ttf/.otf files installed under
    ~/.aseprite-mcp/fonts, plus TrueType fonts found in the system font
    directories. Bitmap fonts are the right choice for pixel art: their
    glyphs are already pixels and `size` scales them by whole numbers.
measure_text tool
Measure text without drawing it.

    Use this to size a panel or centre a label in one shot instead of
    guessing and re-rendering.

    Args:
        text: The string to measure
        font: Font name from list_text_fonts, or a path to a .ttf/.otf or
            bitmap font directory
        size: Pixel size for TrueType fonts; integer scale factor for bitmap
            fonts (default 1)
        letter_spacing: Extra pixels between glyphs (default 0)
        bold: Faux-bold passes; each grows strokes by 1px (default 0)
        antialias: Keep greyscale edges instead of hard pixels (default False)

    Returns:
        width, height, advance_width, and the ink extents above/below the
        baseline.
draw_text tool
Draw text onto a sprite.

    Glyphs are rasterised outside Aseprite and composited in, because the
    Lua API has no text drawing of its own.

    Args:
        filename: Aseprite file to modify
        text: String to draw
        x: X coordinate of the anchor point
        y: Y coordinate of the anchor point
        font: Font name from list_text_fonts, or a path to a .ttf/.otf or a
            bitmap font directory
        size: Pixel size for TrueType fonts; integer scale factor for bitmap
            fonts (default 1)
        color: Text colour, #RRGGBB or #RRGGBBAA (default white)
        layer_name: Layer to draw on; the active/first layer if omitted
        frame_index: Frame index starting at 1 (default 1)
        anchor: Which point of the text (x, y) refers to - one of topleft,
            top, topright, left, center, right, bottomleft, bottom,
            bottomright, baselineleft, baseline, baselineright
            (default topleft)
        letter_spacing: Extra pixels between glyphs (default 0)
        bold: Faux-bold passes; each grows strokes by 1px (default 0)
        outline_color: If set, draw a 1px outline in this colour
        outline_width: Outline thickness in pixels (default 1)
        outline_diagonal: Include diagonal neighbours in the outline, giving a
            rounded corner; False gives a boxier 4-way outline (default True)
        shadow_color: If set, draw a drop shadow in this colour
        shadow_dx: Shadow X offset (default 1)
        shadow_dy: Shadow Y offset (default 1)
        antialias: Keep greyscale edges instead of hard pixels (default False)
        create_if_missing: Create the layer/cel if absent (default True)
create_tilemap_layer tool
Create a tilemap layer with its own tileset.

    Sets the sprite grid to the tile size and adds a tilemap layer.
    Tile index 0 is always the empty tile; add real tiles with
    draw_on_tile (which creates tiles on demand).

    Args:
        filename: Aseprite file to modify
        layer_name: Name for the new tilemap layer
        tile_width: Tile width in pixels
        tile_height: Tile height in pixels
draw_on_tile tool
Draw pixels onto a tile in a tilemap layer's tileset.

    Coordinates are tile-local (0,0 = tile top-left). When tile_index
    equals the current tile count, a new tile is appended automatically.

    Args:
        filename: Aseprite file to modify
        layer_name: Tilemap layer whose tileset to edit
        tile_index: Tile to draw on (1 = first real tile; 0 is reserved
            for the empty tile and cannot be drawn on)
        pixels: List of {"x": int, "y": int, "color": "#RRGGBB"}
set_tiles tool
Place tiles on a tilemap layer by grid position.

    Args:
        filename: Aseprite file to modify
        layer_name: Tilemap layer to edit
        frame_index: Frame index starting at 1
        tiles: List of {"col": int, "row": int, "tile_index": int}
            (col/row are grid coordinates; tile_index 0 clears the cell)
get_tile_at tool
Read which tile is placed at a grid position.

    Args:
        filename: Aseprite file to read
        layer_name: Tilemap layer to read
        frame_index: Frame index starting at 1
        col: Grid column (0-based)
        row: Grid row (0-based)

    Returns:
        JSON with {col, row, tile_index} (0 = empty).
get_tilemap_info tool
Get tilemap layer info: tile size, tile count, and map dimensions.

    Args:
        filename: Aseprite file to read
        layer_name: Tilemap layer to inspect

    Returns:
        JSON with tile_width, tile_height, tile_count (real tiles,
        excluding the empty tile 0), map_cols, map_rows.
flip_layer tool
Flip a layer's image horizontally or vertically.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer name to flip
        frame_index: Frame index starting at 1
        direction: "horizontal" or "vertical"
rotate_layer tool
Rotate a layer's image 90, 180, or 270 degrees clockwise.

    Args:
        filename: Aseprite file to modify
        layer_name: Layer name to rotate
        frame_index: Frame index starting at 1
        angle: Rotation angle: 90, 180, or 270 (clockwise)
resize_canvas tool
Scale the canvas and all its content to new dimensions.

    Args:
        filename: Aseprite file to modify
        width: New canvas width in pixels
        height: New canvas height in pixels
crop_canvas tool
Crop the canvas to the given rectangle, discarding content outside it.

    Args:
        filename: Aseprite file to modify
        x: Left edge of the crop area
        y: Top edge of the crop area
        width: Width of the crop area
        height: Height of the crop area
view_sprite tool
Look at the sprite: returns an image of its frames that you can see directly.

    Use this after every drawing pass instead of exporting a PNG and opening
    it. Each frame is scaled up with nearest-neighbour, shown over a light
    checkerboard (transparent pixels), with a pixel grid (darker every 8 px)
    and rulers giving sprite coordinates, so a mistake you spot can be fixed
    at exact x/y right away. Frames are laid out side by side, at most four
    per row, each titled with its number and duration.

    Args:
        filename: Aseprite file to look at
        frames: Frames to show, 1-based: "3", "1-4" or "1,3,6-8", at most 16;
            "" shows all frames (the first 16 of longer sprites)
        layer_name: Show only this layer, by name or "group/layer" path
            (default: all visible layers)
        scale: Zoom factor, 1-64; 0 picks one (each frame ~384 px, at least 6x
            for sprites up to 128 px) and a layout that fits without shrinking
        grid: Draw the pixel grid (only when the scale is 4 or more)
        rulers: Label x across the top and y down the left
        output_filename: Optional path to also save the image as PNG
        region: Zoom into part of the sprite, "x,y,w,h" in sprite pixels,
            e.g. "40,20,16,16" for a hand; rulers keep sprite coordinates
            and scale 0 zooms in to fill the view

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure5.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 123 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 123 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path MEDIUM
    1 finding in export_layers; 1 more to review
  • Requests any address
    No tool sends a request to an address the caller supplies — 123 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 123 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    116 of 123 capabilities start processes; 7 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    3 of 123 capabilities touch files; 120 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 123 capabilities; 123 more call code the scanner could not follow, where it may happen
Where the code is: 123 handlers in 21 files at commit 4bcdb6f59321
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain2.3
  • Dependency manifests
    2 manifests: pyproject.toml, requirements.txt
  • Lockfiles checked against OSV
    2 files resolved and checked against the OSV database; 2 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; requirements.txt: 6 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
  • Known vulnerabilities in production dependencies CRITICAL
    9 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    No MCP SDK declared in a manifest
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 123 capabilities; 123 more call code the scanner could not follow, where it may happen
  • Environment variables
    114 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (9 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
pillowPyPI 12.3.0 CRITICAL 62 advisories 13.0.0
  • CRITICALGHSA-332p-7hrc-92wf BIT-pillow-2026-112393 CVE-2026-112393Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
  • CRITICALGHSA-v9pv-5gc8-w2m6 BIT-pillow-2026-96639 CVE-2026-96639 PYSEC-2026-4339Pillow multi-frame loaders can reuse stale native image storage after mode transitions
  • CRITICALGHSA-w889-685w-c8fh BIT-pillow-2026-112900 CVE-2026-112900Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
  • CRITICALGHSA-8g5g-8vmr-9782 BIT-pillow-2026-112403 CVE-2026-112403 PYSEC-2026-4332Pillow: Heap buffer overflow in ImagingJpegDecode
  • CRITICALGHSA-5x8w-8jj5-q52h BIT-pillow-2026-112398 CVE-2026-112398 PYSEC-2026-4330Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
  • HIGHGHSA-27h8-gf7j-v5hc BIT-pillow-2026-112392 CVE-2026-112392 PYSEC-2026-4326Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
  • HIGHGHSA-c6hw-5grf-ff96 BIT-pillow-2026-112404 CVE-2026-112404Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
  • HIGHGHSA-xcvg-w56q-r89m CVE-2026-128067Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
  • HIGHGHSA-gg2r-wvfm-q9rx BIT-pillow-2026-112892 CVE-2026-112892Pillow: MSP RLE decoder expands a tiny file into unbounded memory
  • HIGHGHSA-xvh5-g6gv-559v BIT-pillow-2026-112902 CVE-2026-112902 PYSEC-2026-4363 Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
  • HIGHGHSA-58r4-6rv3-gfh8 BIT-pillow-2026-112397 CVE-2026-112397 PYSEC-2026-4329Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
  • HIGHGHSA-f2g6-542v-9j58 BIT-pillow-2026-112406 CVE-2026-112406Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
  • HIGHGHSA-65qm-jvmh-6pqg BIT-pillow-2026-112400 CVE-2026-112400Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
  • HIGHGHSA-3j72-p6qg-6xp7 BIT-pillow-2026-96642 CVE-2026-96642 PYSEC-2026-4341Pillow: TarIO negative size field causes infinite CPU-spin loop
  • HIGHGHSA-78g4-xqwv-q3g8Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load()
  • HIGHGHSA-pchr-8j38-3x4p BIT-pillow-2026-112896 CVE-2026-112896 PYSEC-2026-4334Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
  • HIGHGHSA-g7cr-3p24-7wf7 BIT-pillow-2026-96778 CVE-2026-96778Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
  • HIGHGHSA-g842-9rc4-69pw BIT-pillow-2026-96637 CVE-2026-96637 PYSEC-2026-4338Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
  • HIGHGHSA-jg86-v3jv-hrpm BIT-pillow-2026-112894 CVE-2026-112894Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
  • HIGHGHSA-j4m9-6w36-pw47 BIT-pillow-2026-112893 CVE-2026-112893Pillow: Invalid free in FreeType glyph rendering when a stroker is active
  • HIGHGHSA-q45j-58j2-45rg BIT-pillow-2026-112897 CVE-2026-112897Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
  • HIGHGHSA-p4wg-p73j-c528 BIT-pillow-2026-112895 CVE-2026-112895Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
  • HIGHGHSA-mrfp-p49p-3hf2 BIT-pillow-2026-96640 CVE-2026-96640Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
  • HIGHGHSA-9v9v-9qvf-h2hj BIT-pillow-2026-96644 CVE-2026-96644 PYSEC-2026-4343Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
  • HIGHGHSA-5xm2-6676-qcp9 BIT-pillow-2026-112399 CVE-2026-112399Pillow: APNG background disposal allocates full canvas before decompression bomb check
  • HIGHGHSA-g4qv-2jxx-769h BIT-pillow-2026-96643 CVE-2026-96643 PYSEC-2026-4342Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
  • HIGHGHSA-22hg-r758-rrw9 BIT-pillow-2026-112390 CVE-2026-112390Pillow: Infinite loop in MIC n_frames when the embedded TIFF
  • HIGHGHSA-7mwm-ghpf-9vrm BIT-pillow-2026-112402 CVE-2026-112402 PYSEC-2026-4331Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
  • HIGHGHSA-cp9v-662q-vvx9 BIT-pillow-2026-112405 CVE-2026-112405 PYSEC-2026-4333Pillow: NULL pointer dereference in Image.merge via an unvalidated band 0
  • MEDIUMPYSEC-2026-4340 BIT-pillow-2026-96641 CVE-2026-96641 GHSA-4rm8-3hmm-39fgPillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-24rc-8hj2-v98c BIT-pillow-2026-96638 CVE-2026-96638Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
  • MEDIUMPYSEC-2026-4334 BIT-pillow-2026-112896 CVE-2026-112896 GHSA-pchr-8j38-3x4pPillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-4rm8-3hmm-39fg BIT-pillow-2026-96641 CVE-2026-96641 PYSEC-2026-4340Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
  • MEDIUMPYSEC-2026-4341 BIT-pillow-2026-96642 CVE-2026-96642 GHSA-3j72-p6qg-6xp7Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-vx6w-vv9f-6gvg BIT-pillow-2026-112899 CVE-2026-112899Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
  • MEDIUMPYSEC-2026-4329 BIT-pillow-2026-112397 CVE-2026-112397 GHSA-58r4-6rv3-gfh8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4327 BIT-pillow-2026-112394 CVE-2026-112394 GHSA-4558-3h8r-v8xpPillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-fc9g-5qg7-mf45 BIT-pillow-2026-112891 CVE-2026-112891Pillow: Quadratic GIF comment copying during save
  • MEDIUMPYSEC-2026-4339 BIT-pillow-2026-96639 CVE-2026-96639 GHSA-v9pv-5gc8-w2m6Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_prepare() reuses the stale native storage because _im is non-null without verifying that its mode and size still match. Crafted PSD, MPO, DCX, or MIC frame transitions can then write wider pixels into the narrow allocation, causing native out-of-bounds writes and crashes. The MPO path can also cause a native over-read and, in demonstrated runtime-specific profiles, command execution. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-74r2-7ff9-mjj2 BIT-pillow-2026-112401 CVE-2026-112401Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
  • MEDIUMPYSEC-2026-4328 BIT-pillow-2026-112396 CVE-2026-112396 GHSA-4rr5-89j8-mwwmPillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-654x-cwwv-5j9c BIT-pillow-2026-114501 CVE-2026-114501 PYSEC-2026-4336Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
  • MEDIUMPYSEC-2026-4336 BIT-pillow-2026-114501 CVE-2026-114501 GHSA-654x-cwwv-5j9cPillow is a Python imaging library. From 11.2.1 until 13.0.0, Arrow export assumes that an image's rows are tightly contiguous and exports from im->blocks[0].ptr even when PILLOW_ALIGNMENT makes aligned_linesize include row padding or an aligned offset before the first row. The resulting Arrow buffer can include uninitialized padding, bytes preceding the first row, or stale heap contents from previously freed images. Applications that configure alignment and export images to Arrow can therefore disclose one user's pixels or other process memory to another user. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-xgh8-jp6q-p5x8 BIT-pillow-2026-112901 CVE-2026-112901 PYSEC-2026-4335Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
  • MEDIUMPYSEC-2026-4342 BIT-pillow-2026-96643 CVE-2026-96643 GHSA-g4qv-2jxx-769hPillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4363 BIT-pillow-2026-112902 CVE-2026-112902 GHSA-xvh5-g6gv-559vPillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to  TIFFSetField()  that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.
  • MEDIUMGHSA-wqgw-9xfh-qf2g CVE-2026-128066Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
  • MEDIUMGHSA-4558-3h8r-v8xp BIT-pillow-2026-112394 CVE-2026-112394 PYSEC-2026-4327Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
  • MEDIUMGHSA-462x-pgg6-55fp BIT-pillow-2026-112395 CVE-2026-112395Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
  • MEDIUMGHSA-4rr5-89j8-mwwm BIT-pillow-2026-112396 CVE-2026-112396 PYSEC-2026-4328Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
  • MEDIUMPYSEC-2026-4335 BIT-pillow-2026-112901 CVE-2026-112901 GHSA-xgh8-jp6q-p5x8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's XBM header parser is vulnerable to regular-expression denial of service. In XbmImageFile._open, when an application calls Image.open() on a small crafted XBM file, XbmImagePlugin applies a backtracking expression to the attacker-controlled header before image dimensions are accepted, stalling a worker for minutes and denying service. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4332 BIT-pillow-2026-112403 CVE-2026-112403 GHSA-8g5g-8vmr-9782Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4331 BIT-pillow-2026-112402 CVE-2026-112402 GHSA-7mwm-ghpf-9vrmPillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt memory. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4338 BIT-pillow-2026-96637 CVE-2026-96637 GHSA-g842-9rc4-69pwPillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4343 BIT-pillow-2026-96644 CVE-2026-96644 GHSA-9v9v-9qvf-h2hjPillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4330 BIT-pillow-2026-112398 CVE-2026-112398 GHSA-5x8w-8jj5-q52hPillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4337 BIT-pillow-2026-96636 CVE-2026-96636 GHSA-p8hx-v2p6-rp84Pillow is a Python imaging library. Prior to 13.0.0, MpoImageFile.seek() and DcxImageFile.seek() reparse later MPO or DCX frames and replace self._size without rerunning Image._decompression_bomb_check(). A crafted multi-frame image can use a tiny first frame to pass Image.open() and then declare an over-limit later frame. Normal frame iteration through seek(), load(), or ImageSequence.Iterator can decode that frame and commit hundreds of megabytes or more, causing memory-exhaustion denial of service. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-p8hx-v2p6-rp84 BIT-pillow-2026-96636 CVE-2026-96636 PYSEC-2026-4337Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
  • MEDIUMPYSEC-2026-4326 BIT-pillow-2026-112392 CVE-2026-112392 GHSA-27h8-gf7j-v5hcPillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference invalid image storage for a zero-size image. ImagingExpand() allocates a non-empty output and then faults while replicating edges by reading the first pixel from empty input storage; ImagingRankFilter is never reached. An attacker can supply or cause creation of a zero-size image to an application that applies a rank, median, minimum, or maximum filter. This causes a native process crash. This issue is fixed in version 13.0.0.
  • MEDIUMPYSEC-2026-4333 BIT-pillow-2026-112405 CVE-2026-112405 GHSA-cp9v-662q-vvx9Pillow is a Python imaging library. From 12.0.0 until 13.0.0, Pillow's Image.merge() can dereference a null image8 plane. Validation skips the first input band, allowing a 32-bit integer or floating-point image backed by image32 storage to be merged as a narrower multiband image. A crafted IPTC file can reach this path when an application opens and loads it, or a caller can invoke Image.merge() directly with such a first band. This causes a native process crash. This issue is fixed in version 13.0.0.
  • MEDIUMGHSA-rfgq-q3w2-pmv2 BIT-pillow-2026-112898 CVE-2026-112898Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
  • MEDIUMGHSA-254f-3936-288h BIT-pillow-2026-112391 CVE-2026-112391Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
anyioPyPI 4.9.0 CRITICAL 4 advisories 4.14.2
  • CRITICALGHSA-82r6-8w77-94w6 CVE-2026-63374 PYSEC-2026-4025AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
  • MEDIUMPYSEC-2026-4024 CVE-2026-64847 GHSA-5p39-cfhj-2xmpAnyIO process-pool workers can block indefinitely on undrained stderr
  • MEDIUMGHSA-5p39-cfhj-2xmp CVE-2026-64847 PYSEC-2026-4024AnyIO process-pool workers can block indefinitely on undrained stderr
  • MEDIUMPYSEC-2026-4025 CVE-2026-63374 GHSA-82r6-8w77-94w6AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
certifiPyPI 2025.1.31 CRITICAL 2 advisories 2026.10.18
  • CRITICALGHSA-6q48-6c7w-9gw2 PYSEC-2026-4320certifi bundles emSign root CAs with compromised intermediate CA keys
  • MEDIUMPYSEC-2026-4320 GHSA-6q48-6c7w-9gw2certifi bundles emSign root CAs with compromised intermediate CA keys
h11PyPI 0.14.0 CRITICAL 2 advisories 0.16.0
  • CRITICALGHSA-vqfr-h8mv-ghfj CVE-2025-43859 PYSEC-2026-348h11 accepts some malformed Chunked-Encoding bodies
  • MEDIUMPYSEC-2026-348 CVE-2025-43859 GHSA-vqfr-h8mv-ghfjh11 accepts some malformed Chunked-Encoding bodies
starlettePyPI 0.46.1 HIGH 14 advisories 0.47.20.49.11.0.1+3 more
  • HIGHGHSA-82w8-qh3p-5jfq CVE-2026-54283 PYSEC-2026-249Starlette: request.form() limits silently ignored for application/x-www-form-urlencoded enable DoS
  • HIGHGHSA-7f5h-v6xp-fcq8 CVE-2025-62727 PYSEC-2026-1942Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
  • HIGHGHSA-wqp7-x3pw-xc5r CVE-2026-48818 PYSEC-2026-2281Starlette: SSRF and NTLM credential theft via UNC paths in StaticFiles on Windows
  • MEDIUMPYSEC-2026-2280 CVE-2026-48817 GHSA-x746-7m8f-x49cStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and below, when dispatching a request, HTTPEndpoint selects the handler by lowercasing the HTTP method and looking it up as an attribute with getattr, without restricting the lookup to a known set of HTTP verbs. When an HTTPEndpoint subclass is registered through Route(...) without an explicit methods= argument, the route does not constrain the method and every method reaches the endpoint. If a non-standard HTTP method whose lowercased name matches an attribute on the endpoint subclass reaches the endpoint, that attribute is invoked as if it were a request handler. An attacker can use this to reach methods that were never meant to be HTTP handlers, such as internal helpers, without the authorization checks applied by the intended public handler. An application (including Starlette-based frameworks like FastAPI) is affected if it registers an HTTPEndpoint subclass via Route(...) without explicitly setting methods=, and that subclass includes extra methods named like non-standard HTTP verbs that take one request argument and return a response. This issue has been fixed in version 1.1.0.
  • MEDIUMGHSA-2c2j-9gv5-cj73 CVE-2025-54121 PYSEC-2026-1941Starlette has possible denial-of-service vector when parsing large files in multipart forms
  • MEDIUMGHSA-86qp-5c8j-p5mr CVE-2026-48710 PYSEC-2026-161 X41-2026-002Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security checks
  • MEDIUMPYSEC-2026-2281 CVE-2026-48818 GHSA-wqp7-x3pw-xc5rStarlette is a lightweight ASGI framework/toolkit. In versions 1.0.1 and earlier, StaticFiles on Windows is vulnerable to SSRF. An UNC path such as \\\\attacker.com\\share can cause os.path.realpath to initiate an outbound SMB connection before the path is rejected, exposing the service account’s NTLMv2 credentials for offline cracking or relay even though the HTTP response is only a 404. The issue affects default follow_symlink=False deployments, including frameworks built on Starlette such as FastAPI; POSIX systems and follow_symlink=True are unaffected. The issue is fixed in 1.1.0.
  • MEDIUMGHSA-x746-7m8f-x49c CVE-2026-48817 PYSEC-2026-2280Starlette: Arbitrary HTTP method dispatched to `HTTPEndpoint` attributes via `getattr`
  • MEDIUMPYSEC-2026-249 CVE-2026-54283 GHSA-82w8-qh3p-5jfqStarlette is a lightweight ASGI framework/toolkit. From 0.4.1 until 1.3.1, request.form() accepts max_fields and max_part_size to bound resource consumption while parsing form data. These limits are enforced for multipart/form-data, but silently ignored for application/x-www-form-urlencoded. An unauthenticated attacker can therefore send a urlencoded body with an arbitrarily large number of fields or an arbitrarily large field, even when the application configured limits it believed would apply. This vulnerability is fixed in 1.3.1.
  • MEDIUMPYSEC-2026-1941 CVE-2025-54121 GHSA-2c2j-9gv5-cj73Starlette has possible denial-of-service vector when parsing large files in multipart forms
  • MEDIUMPYSEC-2026-161 CVE-2026-48710 GHSA-86qp-5c8j-p5mr X41-2026-002BadHost: Missing Host header validation poisons request.url.path, bypassing path-based security checks
  • MEDIUMPYSEC-2026-248 CVE-2026-54282 GHSA-jp82-jpqv-5vv3Starlette is a lightweight ASGI framework/toolkit. Prior to 1.3.0, the HTTP request path is not validated before being used to reconstruct request.url. Because request.url is rebuilt by concatenating {scheme}://{host}{path} and re-parsing the result, a path that does not begin with / (for example @google.com) moves the authority boundary during re-parsing, so request.url.hostname and request.url.netloc become attacker-controlled. Code that reads request.url.hostname (rather than the Host header or scope) can therefore be misled into trusting an attacker-supplied host. This vulnerability is fixed in 1.3.0.
  • MEDIUMPYSEC-2026-1942 CVE-2025-62727 GHSA-7f5h-v6xp-fcq8Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``
  • LOWGHSA-jp82-jpqv-5vv3 CVE-2026-54282 PYSEC-2026-248Starlette: Unvalidated request path concatenated into authority poisons request.url.hostname
mcpPyPI 1.6.0 HIGH 10 advisories 1.9.41.10.01.23.0+2 more
  • HIGHGHSA-9h52-p55h-vw2f CVE-2025-66416 PYSEC-2026-1617Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
  • HIGHGHSA-jpw9-pfvf-9f58 CVE-2026-52869 PYSEC-2026-3482MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
  • HIGHGHSA-vj7q-gjh5-988w CVE-2026-59950 PYSEC-2026-3483MCP Python SDK: WebSocket server transport does not support Host/Origin validation
  • HIGHGHSA-3qhf-m339-9g5v CVE-2025-53366 PYSEC-2026-1616MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
  • HIGHGHSA-j975-95f5-7wqh CVE-2025-53365 PYSEC-2026-1618MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
  • MEDIUMPYSEC-2026-3483 CVE-2026-59950 GHSA-vj7q-gjh5-988wMCP Python SDK: WebSocket server transport does not support Host/Origin validation
  • MEDIUMPYSEC-2026-1618 CVE-2025-53365 GHSA-j975-95f5-7wqhMCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
  • MEDIUMPYSEC-2026-1617 CVE-2025-66416 GHSA-9h52-p55h-vw2fModel Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
  • MEDIUMPYSEC-2026-1616 CVE-2025-53366 GHSA-3qhf-m339-9g5vMCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
  • MEDIUMPYSEC-2026-3482 CVE-2026-52869 GHSA-jpw9-pfvf-9f58MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
idnaPyPI 3.10 MEDIUM 2 advisories 3.15
  • MEDIUMPYSEC-2026-215 CVE-2026-45409 GHSA-65pc-fj4g-8rjxInternationalized Domain Names in Applications (IDNA) for Python provides support for Internationalized Domain Names in Applications (IDNA) and Unicode IDNA Compatibility Processing. In versions prior to 3.15, payloads such as `"\\u0660" * N` or `"\\u30fb" * N + "\\u6f22"` utilize the `valid_contexto` function prior to length rejection, and for high values of `N` will take a long time to process. This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service. Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support). A workaround is available. Domain names cannot exceed 253 characters in length. If this length limit is enforced prior to passing the domain to the `idna.encode()` function, it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.
  • MEDIUMGHSA-65pc-fj4g-8rjx CVE-2026-45409 PYSEC-2026-215Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix
pygmentsPyPI 2.19.1 MEDIUM 2 advisories 2.20.0
  • MEDIUMPYSEC-2026-2987 CVE-2026-4539 GHSA-5239-wwwm-4pmqPygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
  • LOWGHSA-5239-wwwm-4pmq CVE-2026-4539 PYSEC-2026-2987Pygments has Regular Expression Denial of Service (ReDoS) due to Inefficient Regex for GUID Matching
python-dotenvPyPI 1.1.0 MEDIUM 2 advisories 1.2.2
  • MEDIUMGHSA-mf9w-mj56-hr94 CVE-2026-28684 PYSEC-2026-2270python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
  • MEDIUMPYSEC-2026-2270 CVE-2026-28684 GHSA-mf9w-mj56-hr94python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportstdio
Sign-innot checked needs the live server
Servers in the code1 (aseprite)

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-03
Signed releasesnot checked yet

Where it is published

Listed in7 catalogs (awesome_habitoai, awesome_punkpeye, awesome_tensorblock, github_search, glama, mcp_toplist, mcpservers_org)
LicenseMIT
Created2025-04-05
Topicsanimation art artificial-intelligence aseprite game-development mcp-server

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.