Skip to main content
Glama

Draw pixel map

aseprite_pixel_map

Draw exact pixel art in Aseprite using compact character rows and a palette, leaving '.' unchanged; supports stamps, files, and frame/layer targeting.

Instructions

Most token-efficient way to draw many exact pixels: a palette of single-character keys and one text row per pixel row. '.' and space leave the pixel unchanged; map a key to '#00000000' to erase. One undo step. Example: palette {"k":"#222034","y":"#fbf236"}, rows ["..kk..", ".kyyk.", "kyyyyk"]. Repeated parts: define stamps once and draw them with place. Generated art: write the data to a .json file and pass file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoLeft edge of the map on the canvas (default 0)
yNoTop edge of the map on the canvas (default 0)
fileNoAbsolute path of a .json file: an array of rows, or an object with rows/palette/x/y/stamps/place; inline arguments override it
rowsNoOne string per pixel row, top to bottom
frameNoFrame number, 1-based (default: active frame)
layerNoLayer name (default: active layer)
placeNoStamps to draw after rows, in order: [name, x, y] or [name, x, y, "h"|"v"|"hv"] (flip); x/y relative to the map
stampsNoReusable pixel maps: {"name": {"rows": [...], "palette"?: {...}}}
paletteNoSingle character -> hex color (required unless paletteName is given)
paletteNameNoName of a palette saved with aseprite_palette

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries full responsibility. It discloses key behaviors: '.' and space leave pixels unchanged, mapping a key to '#00000000' erases, one undo step, stamps drawing order, and file override precedence. It does not cover error cases or interaction with active layer/frame beyond defaults, but the core behavior is transparent.

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?

The description is detailed but efficient, front-loading the core concept and then systematically covering format, examples, stamps, and file usage. Every sentence contributes to understanding how to use the tool. It is slightly long but justified by the complexity of the tool.

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

Completeness4/5

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

Given the high complexity (10 parameters, nested objects, no output schema), the description covers essential usage patterns, special characters, and file support. It does not explain coordinate origin or error handling, but it is sufficiently complete for an agent to call correctly in typical scenarios.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds meaning by explaining the interplay of palette, rows, stamps, and file, plus the special meaning of '.' and space (not in schema). It also clarifies that inline arguments override file values, adding value beyond the schema's individual parameter descriptions.

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 description clearly states the tool's purpose: drawing many exact pixels using a token-efficient palette-and-rows format. It distinguishes itself from siblings like aseprite_set_pixels (likely for individual pixels) and aseprite_draw (for shapes) by emphasizing 'most token-efficient way to draw many exact pixels.'

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

Usage Guidelines3/5

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

The description implies usage for bulk pixel drawing and mentions patterns like stamps and file-based generation, but it does not explicitly compare against alternatives or state when NOT to use it (e.g., for few pixels or freeform drawing). It provides context but no exclusions or direct routing to siblings.

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