S
spritesynthDOCS

MCP Tools Reference

Complete reference for all tools available through the SpriteSynth MCP server.

MCP Tools Reference

Each tool available through the SpriteSynth MCP server is documented below with parameters, descriptions, and return values.


generate_image

Generate a pixel art image from a text description.

Parameters

NameTypeRequiredDescription
descriptionstringYesText description of the image to generate
modelstringNoAI model: fast (default), slow
image_sizestringNoImage size: 128x128, 256x256 (default), 512x512
seedintegerNoRandom seed for reproducible results

Example Usage

Generate a 32x32 pixel art sword with a blue gem

Returns

  • Generated asset with download URL
  • Asset ID for further operations

create_character

Create a character with directional sprites and animation states.

Parameters

NameTypeRequiredDescription
descriptionstringYesDescription of the character
direction_countintegerNoDirections: 1, 4 (default), or 8
statesarrayNoStates to generate: ["idle", "walk", "run", "attack"] (default: ["idle"])
widthintegerNoSprite width in pixels (default: 32)
heightintegerNoSprite height in pixels (default: 32)

Example Usage

Create a knight character with 4 directions and idle, walk, and attack states

Returns

  • Character with UUID
  • Generated sprite sheets for each state and direction
  • States with frame metadata

create_tileset

Create a tileset for game environments.

Parameters

NameTypeRequiredDescription
typestringYesTileset type: top_down, sidescroller, isometric
tile_sizeintegerNoTile size in pixels: 16 (default), 32, 64
descriptionstringYesDescription of the tileset style and contents
tile_countintegerNoNumber of tiles to generate (default: 16)

Example Usage

Create a top-down dungeon tileset with stone floors, walls, and door tiles at 16x16

Returns

  • Tileset with UUID
  • Individual tile assets
  • Metadata JSON with tile positions

create_object

Create a game object with states and directional sprites.

Parameters

NameTypeRequiredDescription
descriptionstringYesDescription of the object
direction_countintegerNoDirections: 1 (default), 4, or 8
statesarrayNoStates: ["idle", "broken", "open", "active"] (default: ["idle"])
widthintegerNoSprite width in pixels (default: 16)
heightintegerNoSprite height in pixels (default: 16)

Example Usage

Create a treasure chest object with idle, open, and broken states

Returns

  • Object with UUID
  • Sprite sheets for each state
  • State metadata with frame counts

animate_character

Add or update animations for an existing character.

Parameters

NameTypeRequiredDescription
character_iduuidYesID of the character to animate
animation_typestringYesAnimation type: walk, run, attack, hurt, cast, etc.
descriptionstringNoAdditional description for the animation style
frame_countintegerNoNumber of frames (default: 6)

Example Usage

Add a running animation to my knight character

Returns

  • Updated character with new animation state
  • Sprite sheet for the new animation

edit_image

Edit an existing image using natural language instructions.

Parameters

NameTypeRequiredDescription
asset_iduuidYesID of the asset to edit
instructionstringYesNatural language editing instruction

Example Usage

Add a red glow to the gem in asset abc-123

Returns

  • Edited asset with new download URL
  • Original asset is preserved

inpaint

Fill a region of an image with AI-generated content.

Parameters

NameTypeRequiredDescription
asset_iduuidYesID of the source image
maskstringYesAsset ID of the mask image (white = area to inpaint)
promptstringYesDescription of what to generate in the masked area

Example Usage

Inpaint the masked area of asset abc-123 with a cracked stone texture

Returns

  • Inpainted asset with new download URL
  • Original asset is preserved

export_assets

Export assets in a game engine format.

Parameters

NameTypeRequiredDescription
typestringYesAsset type: character, tileset, object
idsarrayYesArray of UUIDs to export
formatstringYesFormat: unity, godot, tiled, aseprite, generic

Example Usage

Export my knight character in Unity format

Returns

  • Download URL for the ZIP file
  • Format-specific metadata

list_projects

List all projects for the authenticated user.

Parameters

None.

Example Usage

List my projects

Returns

  • Array of projects with UUIDs, names, and asset counts

list_characters

List all characters for the authenticated user.

Parameters

NameTypeRequiredDescription
project_iduuidNoFilter by project UUID

Example Usage

List my characters

Returns

  • Array of characters with UUIDs, names, state counts, and thumbnails

Need help?

Join our Discord community for support and tips.

Was this page helpful?

On this page