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
POST https://fliplinespritesheet.usefulweb.site/api/v1/calculate– run Sprite Sheet Layout PlannerGET https://fliplinespritesheet.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
count | integer | 12 | Drawing count |
width | integer | 256 | Frame width (px) |
height | integer | 256 | Frame height (px) |
columns | integer | 4 | Columns |
padding | integer | 2 | Padding (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)
- Streamable HTTP endpoint:
https://fliplinespritesheet.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_sprite_sheet - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-sprite-sheet
{
"mcpServers": {
"flipline-sprite-sheet": { "type": "http", "url": "https://fliplinespritesheet.usefulweb.site/mcp" }
}
}