Skip to main content
Glama

export_spritesheet

Export Aseprite frames as a sprite sheet image with row, column, grid, or packed layouts, plus optional JSON metadata for frame rectangles, durations, and tags.

Instructions

Lay the frames out in one image with Aseprite's sprite sheet exporter.

horizontal puts all frames in one row, vertical in one column, rows and columns make a grid, packed fits frames tightly. Hidden layers are left out. data_output gets Aseprite's JSON: frames (an object keyed by frame name for "hash", a list for "array"; frame names count from 0) with each frame's rectangle and duration, and meta with the image path (relative to the JSON file), size and tags. The sprite is not changed; existing files are refused unless overwrite is true. Not available in batch.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "output": "<output>"
    },
    "name": "export_spritesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoOnly this tag's frames
pathYesSprite file. Relative paths resolve against the server root.
scaleNoOutput pixels per sprite pixel (nearest)
outputYesSheet image: .png, .bmp, .tga or .qoi
paddingNoPixels between frames
overwriteNoReplace files that already exist
sheet_typeNoLayout: one row, one column, a grid filled by rows or columns, or packedhorizontal
data_formatNoJSON frames as an object keyed by name, or a listhash
data_outputNoJSON file describing the frames; default none

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does so well: it discloses that hidden layers are omitted, that the sprite itself is unmodified, that existing files are refused unless overwrite is true, and that the tool is unavailable in batch mode. These are exactly the mutation-safety and side-effect facts an agent needs before calling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core action, then structured by concern: layouts, exclusions, JSON payload, and write semantics. The layout sentence largely duplicates the sheet_type enum description already in the schema, which is minor redundancy but keeps the parameter meaning scannable in one place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nine-parameter export tool with an output schema present, the description covers everything an agent needs: layout choices, hidden-layer handling, output/JSON relationship, non-destructiveness, and overwrite behavior. Return values need not be explained given the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all nine parameters and the baseline is 3. The description restates the sheet_type options in prose and adds meaningful detail about data_output's JSON shape (frames keyed by name vs. list, frame names counting from 0, meta contents), which goes beyond the schema, but it adds little for path, scale, padding, or tag.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource: laying sprite frames out into a single sheet image via Aseprite's sprite sheet exporter. It is clearly distinguishable from plain 'export' or 'export_layers' siblings because it emphasizes a laid-out sheet plus optional frame-metadata JSON.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete context for choosing among the layout modes and states a clear exclusion ('Not available in batch'), which implicitly routes batch users elsewhere. It stops short of naming alternative siblings like export or export_layers or saying when a plain image export is preferable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.