Skip to main content
Glama

export_godot_spriteframes

Destructive

Exports an Aseprite sprite as a Godot 4 SpriteFrames .tres resource plus a packed PNG sheet and JSON metadata, creating one animation per tag with per-frame timing from Aseprite durations.

Instructions

Export a sprite as a Godot 4 SpriteFrames resource (.tres) + a packed sheet.

Produces three files: a packed PNG sprite sheet, its JSON frame/tag metadata, and a
``SpriteFrames`` .tres that references the sheet via ``AtlasTexture`` regions, one
Godot animation per Aseprite tag (or a single ``default`` animation if untagged), with
per-frame timing taken from Aseprite frame durations.

Emits ``SpriteFrames`` only (no pivot/origin/hitbox/9-slice). Tag direction determines
frame order; ping-pong visits each endpoint once and reuses frame durations on return.
Finite repeats play once. Counts above one add a warning naming the tag, since Godot
SpriteFrames cannot store repeat counts.

Args:
    output: Destination .tres path (workspace-relative).
    sheet_output: Sheet PNG path. Defaults to ``<output stem>.png`` beside the .tres.
    scale: Integer upscaling factor for the sheet.
    texture_res_path: The ``res://`` path of the sheet inside your Godot project (the
        AtlasTexture atlas). Defaults to ``res://<sheet filename>`` (same-folder import).
    default_loop: ``loop`` flag for untagged sprites and tags without finite repeats
        (default True). Finite repeats always disable looping.
    overwrite: Replace existing outputs (default False = no-clobber). All three targets
        are validated up front, so nothing is written if any already exists.

Returns a ``workflow_manifest.v1`` manifest (kind ``engine_preset``).

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>",
      "output": "<output>"
    },
    "name": "export_godot_spriteframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
scaleNoDefault: 1.
outputYes
filenameYes
overwriteNoDefault: false.
default_loopNoDefault: true.
sheet_outputNo
texture_res_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed17 schema fields changedv0.10.0
    • addedInput schema / properties / default_loop / description
      Added value: +"Default: true."
    • removedInput schema / properties / default_loop / title
      Removed value: -"Default Loop"
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • removedInput schema / properties / output / title
      Removed value: -"Output"
    • addedInput schema / properties / overwrite / description
      Added value: +"Default: false."
    • removedInput schema / properties / overwrite / title
      Removed value: -"Overwrite"
    • addedInput schema / properties / scale / description
      Added value: +"Default: 1."
    • removedInput schema / properties / scale / title
      Removed value: -"Scale"
    • removedInput schema / properties / sheet_output / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / sheet_output / default
      Removed value: -null
    • removedInput schema / properties / sheet_output / title
      Removed value: -"Sheet Output"
    • addedInput schema / properties / sheet_output / type
      Added value: +"string"
    • removedInput schema / properties / texture_res_path / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / texture_res_path / default
      Removed value: -null
    • removedInput schema / properties / texture_res_path / title
      Removed value: -"Texture Res Path"
    • addedInput schema / properties / texture_res_path / type
      Added value: +"string"
    • removedInput schema / title
      Removed value: -"export_godot_spriteframesArguments"
  2. First observedv0.7.0

TDQS

A4.2/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnly=false, destructive=true) by disclosing no-clobber defaults, that all three targets are validated before any write occurs, and the exact file set produced. It also discloses edge-case semantics: finite repeats disabling looping, ping-pong endpoint visits, and a warning for repeat counts above one. It stops short of stating permission or path-confinement requirements, so not a 5.

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?

Front-loaded with the outcome, then structured into a prose block and an Args section that maps to the schema, which aids scanning. A few clauses (ping-pong endpoint mechanics, the repeat-count warning) are denser than needed for tool selection, but nothing is clearly filler.

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

Completeness5/5

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

For a seven-parameter file-writing tool with no output schema, the description covers produced artifacts, defaults, ordering semantics, and the shape of the return value (workflow_manifest.v1, kind engine_preset). An agent has enough to call it correctly and anticipate the results.

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 only 43% and the description compensates substantially, explaining the default derivation for sheet_output (<output stem>.png) and texture_res_path (res://<sheet filename>), plus the interaction of default_loop with finite repeats. The one gap is `filename`, which never appears in the Args list, leaving one required parameter unexplained beyond its schema type.

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?

Names a specific verb and resource: exporting a sprite as a Godot 4 SpriteFrames .tres plus a packed sheet. The first sentence alone distinguishes this from siblings like export_spritesheet or export_frames, and the enumeration of the three produced files pins down the output surface precisely.

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 Godot/SpriteFrames framing implies when this tool is the right choice, but there is no explicit statement of when to use it instead of export_spritesheet, export_game_asset_bundle, or export_frames, and no exclusions. Useful context is present but routing is left to inference from the resource type.

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