API & MCP

Everything a person can do on Sprite Sheet Layout Planner, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Sprite Sheet Layout Planner

Calculate a sprite sheet canvas and the pixel coordinates of every drawing. Use the JSON rectangles in a game or export the actual sheet from Flipline.

Inputs of Sprite Sheet Layout Planner
FieldTypeDefaultDescription
countinteger12Drawing count
widthinteger256Frame width (px)
heightinteger256Frame height (px)
columnsinteger4Columns
paddinginteger2Padding (px)

Example request

Twelve sprites in four columns

curl -X POST https://fliplinespritesheet.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"count":12,"width":256,"height":256,"columns":4,"padding":2}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "flipline-sprite-sheet": { "type": "http", "url": "https://fliplinespritesheet.usefulweb.site/mcp" }
  }
}