Skip to main content
Glama
Aseprite MCP Pro Max

Aseprite MCP Pro Max

read_rows

Read a rectangular pixel region as one character per pixel plus a color legend, so you can inspect rows, edit a few pixels, and pass them back to redraw.

Instructions

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.

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": {
      "filename": "<filename>",
      "x": "<x>",
      "y": "<y>",
      "width": "<width>",
      "height": "<height>"
    },
    "name": "read_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
widthYes
heightYes
filenameYes
layer_nameNo
frame_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose meaningful behaviour beyond a bare read: transparency is rendered as '.', the region size is capped at 16384 pixels, frame_index is 1-based, and layer_name="" means all visible layers are composited rather than a single layer. It does not describe error behaviour for missing files, absent layers, or oversized regions.

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 core behaviour and the draw_rows round-trip are front-loaded, and the Args/Returns block is scannable rather than prose-heavy. The one redundancy is restating 'filename: Aseprite file to read' immediately after the opening sentence establishes the file context, but overall little is wasted.

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 seven-parameter tool with no annotations and no output schema, the definition covers the essentials: what is read, every parameter's meaning, the size limit, the compositing rule, and the exact return keys (x, y, width, height, rows, legend). The remaining gap is failure modes, such as invalid regions or a layer_name that does not match a layer or group.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must supply all meaning, and it documents all seven parameters: units for x/y (sprite pixels), the region size bound on width/height, the 1-based frame_index default, and the subtle empty-string default of layer_name with its compositing consequence. This is meaning an agent could not recover from the bare schema.

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 states a specific verb (read) and resource (a rectangular region of an Aseprite file) plus the exact output shape: rows of characters and a colour legend. It also distinguishes the tool from its write-side sibling by naming draw_rows and the round-trip relationship, so an agent can tell the pair apart without opening either schema.

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?

The description frames this as 'the compact way to read pixels' and explains the round-trip workflow: edit the rows, then pass them back to draw_rows with the same rows and legend. That is clear context for when this tool is preferred over other read paths, but it stops short of explicit when-not conditions or what happens if the region is out of bounds.

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

Deploy Server

Other Tools