Skip to main content
Glama

add_layer

Add an image, group, tilemap, or reference layer to an Aseprite sprite, set its properties, and optionally nest it in a group or place it above or below another layer.

Instructions

Adds an image, group or tilemap layer, optionally inside a group or above/below another layer, with its properties set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoPosition of 'image'
yNo
dataNoUser data text
nameNo
saveNoBatch mode: write changes back to the sprite file (default true)
typeNo
aboveNoPlace directly above this layer
belowNoPlace directly below this layer
colorNoTimeline color
frameNoFrame for 'image' (default 1)
imageNoFill the new layer (image or reference) with this image
parentNoGroup layer to move into; '' moves to the top level
spriteNoFile path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path.
backendNoauto (default): live Aseprite if connected, else headless batch
opacityNo
visibleNo
editableNofalse locks the layer
tileSizeNoTilemap layers: tile size
blendModeNonormal, multiply, screen, overlay, darken, lighten, color_dodge, color_burn, hard_light, soft_light, difference, exclusion, hue, saturation, color, luminosity, addition, subtract, divide
collapsedNoGroup layers only
continuousNo
propertiesNoUser-defined properties to set (object.properties)
stackIndexNoPosition among siblings (1 = bottom)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, establishing a non-destructive write. The description adds that properties are set at creation time, which is useful, but omits significant behavior such as the save default (writes back to the sprite file) and backend selection between live and batch modes.

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?

A single, tightly packed sentence with the core action and its main modifiers front-loaded. No filler, though packing four clauses leaves some ambiguity about ordering semantics.

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

Completeness3/5

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

For a 23-parameter creation tool with no output schema and nested objects, the one-sentence description is thin. The important file-write semantics of save/backend and the group-parenting behavior are left entirely to the 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 description coverage is 74% across 23 parameters, so the schema carries most documentation. The description adds only the layer-type and placement vocabulary already implied by the schema; it does not clarify ambiguous params like save, backend, or properties.

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?

States a specific verb (adds) and resource (layer), enumerating the creatable layer types and placement options. This clearly separates it from siblings like update_layer, delete_layer, and duplicate_layer, though it never names them explicitly.

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

Usage Guidelines2/5

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

No guidance on when to use add_layer versus alternatives (convert_layer, duplicate_layer, add_slice), nor any prerequisites or exclusions. The placement options are described as capabilities, not as selection criteria.

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