Skip to main content
Glama

export_godot_spriteframes

Read-onlyIdempotent

Make a Godot 4 SpriteFrames resource (.tres) and the sheet PNG it references, the same files as the Godot Exporter on voidless.dev/tools: one AtlasTexture per frame, named animations with fps and loop. Give frames (packed into a grid sheet) or a sheet (kept as is, grid auto-detected unless given). Each animation picks frames by index (frames or first/last) or brings its own images; with no animations every frame plays as "default". Save the PNG as .png in the folder the .tres names. For a Voidless character give asset_id: alone it exports every clip of the asset (named as in get_asset); or give each animation's frame_id (from get_asset; -1 = the base image, image_index picks one rotation view), or just a name matching one of its frames, or frames/images that are its image keys. Their images, sprite_scale and feet come from the asset, and the export puts every animation at ONE pixel scale with the feet on ONE point (video clips are drawn ~0.57x the base, so mixing them with rotations or the base otherwise changes the size). It returns the world height, px per world unit and the node scale/offset to use (_scale.json, also in the .tres metadata): set the AnimatedSprite2D's scale to node_scale (unit_px / px_per_unit) and offset as given, the same unit_px for every character, instead of guessing sizes. Images up to 2048x2048, 256 frames, 32 MB of input per call. Free: no credits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "export_godot_spriteframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoBase file name: <name>.png and <name>_frames.tressheet
sheetNoInstead of frames: one sprite sheet image, cut into frames row by row.
folderNoGodot folder the PNG will live in, e.g. res://sprites/hero/res://
framesNoFrames in order, each an image (https URL, library image key, data: URI or base64). An animated GIF counts as all its frames.
columnsNoSheet columns when frames are packed (default 8; a roughly square sheet for over 64 frames)
out_dirNoA folder on your machine (absolute path, e.g. the Godot project's sprites/hero folder) to write <name>.png, <name>_frames.tres and the scale files into. Works when the Voidless MCP runs on your machine (the voidless-mcp npm server); the reply then just lists the files. Without it, a big export comes back as download links instead of text
unit_pxNoScreen px of one world unit in the game (the hero's height): the node scale is computed for it
asset_idNoA Voidless image asset. Alone: every clip of it, evened out to one scale. With animations: those with frame_id (or a name matching one of its frames) take their images, scale and feet from it; frames that are its image keys take their scale from it
even_outNoWith scale data: resample each animation to one px per unit and one feet point (default). false keeps the frames and returns a GDScript helper that sets scale/offset per animation
max_sheetNoLargest sheet side in px for an asset export (4096 loads on every phone GPU); the frames are shrunk to fit
animationsNo
sheet_rowsNoRows of the sheet (with sheet).
px_per_unitNopx per world unit in the base image (default: asset_id's)
supersampleNoWith display_height: frame px per screen px (2 keeps HD art crisp when drawn smaller)
world_heightNoWorld height in units (default: asset_id's)
sheet_columnsNoColumns of the sheet (with sheet). Omit columns and rows to auto-detect the grid.
display_heightNoWith asset_id: how many screen px tall the character is drawn in the game. The frames are made supersample x that (instead of the art's full size), so a whole character fits one small sheet and one reply. Omit to keep the art's size (within max_sheet)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / out_dir
      Added value: +{
      +  "description": "A folder on your machine (absolute path, e.g. the Godot project's sprites/hero folder) to write <name>.png, <name>_frames.tres and the scale files into. Works when the Voidless MCP runs on your machine (the voidless-mcp npm server); the reply then just lists the files. Without it, a big export comes back as download links instead of text",
      +  "maxLength": 1024,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • removedInput schema / properties / animations / items / properties / loop / default
      Removed value: -true
    • addedInput schema / properties / animations / items / properties / loop / description
      Added value: +"Default: the asset clip's own (casts, attacks, hurts and deaths play once), else true"
  3. Changed3 schema fields changed
    • addedInput schema / properties / display_height
      Added value: +{
      +  "description": "With asset_id: how many screen px tall the character is drawn in the game. The frames are made supersample x that (instead of the art's full size), so a whole character fits one small sheet and one reply. Omit to keep the art's size (within max_sheet)",
      +  "maximum": 2048,
      +  "minimum": 8,
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_sheet
      Added value: +{
      +  "default": 4096,
      +  "description": "Largest sheet side in px for an asset export (4096 loads on every phone GPU); the frames are shrunk to fit",
      +  "maximum": 16384,
      +  "minimum": 512,
      +  "type": "integer"
      +}
    • addedInput schema / properties / supersample
      Added value: +{
      +  "default": 2,
      +  "description": "With display_height: frame px per screen px (2 keeps HD art crisp when drawn smaller)",
      +  "maximum": 4,
      +  "minimum": 1,
      +  "type": "number"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent/non-destructive, so the description adds substantial behavior: hard limits (2048x2048 images, 256 frames, 32 MB input), the out_dir side effect of writing files to the local machine vs. returning download links, and the ~0.57x scaling of video clips that forces even-out behavior. It also discloses the return payload (world height, px per world unit, node scale/offset in <name>_scale.json and .tres metadata) and that the call is free.

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 purpose and mode selection are front-loaded in the first two sentences, and every later sentence carries operational detail. It is nevertheless a dense, comma-chained block with long run-on clauses (the parenthetical about 0.57x video clips) that would read better as short bullets, so it is efficient but not optimally structured.

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 17-parameter, zero-required-parameter tool with no output schema, the description covers input modes, per-animation semantics, file placement, size limits, the derived scale/offset outputs, and even cost. An agent could call it and interpret the result without opening anything else.

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 coverage is already 94%, but the description adds real meaning the schema cannot: asset_id alone exports every clip, frame_id -1 means the base image, image_index selects a rotation view, and frames/image keys inherit scale from the asset. The explanation of even_out and the single-pixel-scale/single-feet-point invariant explains why unit_px and display_height exist at all.

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 names a specific verb and concrete artifacts – "Make a Godot 4 SpriteFrames resource (.tres) and the sheet PNG it references" – with structural detail (one AtlasTexture per frame, named animations with fps and loop). It also anchors itself against a reference implementation (the Godot Exporter on voidless.dev), so an agent knows exactly what output to expect and can distinguish this from generic asset tools.

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 clearly explains the three input modes and when each applies: "Give frames (packed into a grid sheet) or a sheet (kept as is, grid auto-detected unless given)", plus the asset_id shortcut for Voidless characters and per-animation frame_id/image_index variants. What it lacks is explicit routing away from siblings (e.g. pack_sprite_sheet, animate_sprite) or stated preconditions, so guidance is strong but not exhaustive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources