Skip to main content
Glama

Read pixels as text

aseprite_read_pixels
Read-only

Read pixel colors from a sprite region in the same palette format used for drawing, so you can inspect exact colors or copy and modify areas. Returns transparent dots for empty pixels and supports flattened frames or individual layers.

Instructions

Reads pixels back in the same palette + rows format as aseprite_pixel_map, so you can inspect exact colors or copy/modify a region cheaply. '.' = fully transparent; trailing '.' are cut off. Without layer the visible, flattened frame is read; with layer only that layer. Pass the palette (or paletteName) you drew with to get the same keys back. Max 16384 pixels per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rectNo[x, y, width, height] or "selection" (default: whole canvas)
frameNoFrame number, 1-based (default: active frame)
layerNoLayer name (default: active layer)
paletteNoPreferred keys: character -> hex color
paletteNameNoName of a palette saved with aseprite_palette

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4/5.0
Behavior4/5

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

Annotations provide readOnlyHint=true, and the description does not contradict it. It adds valuable behavioral details beyond the annotation: transparency represented as '.', trailing '.' cut off, max call size, and layer flattening rules. These are exactly the kind of operational traits an agent needs and are not in the annotations.

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

Conciseness5/5

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

Three sentences, no wasted words. The core purpose and format are front-loaded, followed by key behavioral notes. Each sentence earns its place, covering purpose, format, layer behavior, palette guidance, and limits.

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?

For a read-only tool with a comprehensive schema and readOnly annotation, this description covers the essential operational knowledge: output format, interpretation of transparency, maximum pixels, and layer/palette behavior. Missing error handling details are minor for this type of tool, and no output schema exists so the description appropriately explains the return format.

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% — every parameter is described with defaults and formats. The description adds the 'same keys back' hint and the max pixel constraint, which are useful but not substantial. Since the schema already carries the semantic weight, the description's contribution is modest, warranting the baseline of 3.

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

Purpose4/5

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

The description clearly states a specific verb (reads), resource (pixels), and output format (palette + rows), with a concrete use case (inspect colors, copy/modify). It references aseprite_pixel_map but doesn't explicitly contrast itself against that sibling, though the 'reads back' wording implies a read vs. write distinction.

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 explains when to use the tool (inspect exact colors, cheap copy/modify) and provides key context: layer behavior (visible flattened vs. specific layer), palette passing for consistent keys, and a 16384-pixel cap. No explicit exclusions or alternative routing, but the read purpose is self-evident from the name and description.

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