Skip to main content
Glama

update_layer

Change Aseprite layer properties such as name, visibility, lock, opacity, blend mode, color, parent group, and stack position to manage sprite layer behavior and structure.

Instructions

Changes layer properties: name, visibility, lock, opacity, blend mode, color, data, parent group, stack position.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoUser data text
nameNo
saveNoBatch mode: write changes back to the sprite file (default true)
colorNoTimeline color
layerNoLayer name, 'Group/Child' path, or 1-based index from get_sprite_info. Defaults to the active layer.
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
tilesetNoTilemap layers: tileset to use
visibleNo
editableNofalse locks the layer
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

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is partly covered. However, the description adds no behavioral context beyond a field list — nothing about whether changes persist, the save/batch-mode implication, or reversibility of a move/parent change.

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 front-loaded sentence with a colon-delimited field list — dense and efficient, no filler. The only minor issue is that it is a fragment with no leading purpose statement, but nothing is wasted.

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 17-parameter mutation tool with no output schema, the description covers the mutable-property surface but omits targeting (layer/sprite/backend), batch vs live semantics, and the save behavior. The schema picks up most of that, so it is adequate but leaves real gaps.

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 76%, so the schema largely documents the parameters itself. The description's field list ('name, visibility, lock, opacity, blend mode, color, data, parent group, stack position') maps roughly to parameters like parent and stackIndex, adding only marginal meaning beyond the schema.

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 gives a specific verb ('Changes') and resource ('layer properties') and enumerates exactly which fields are mutable, which separates it cleanly from siblings like add_layer, delete_layer, and convert_layer. It does not explicitly name an alternative tool, but the resource scope is unambiguous.

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?

There is no when-to-use, when-not-to-use, or alternative mention. An agent gets no guidance on choosing this over convert_layer, set_sprite_properties, or the batch/live backend parameters that the schema exposes.

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