API & MCP
Everything a person can do on Pixel Grid Transform, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://fliplinepixeltransform.usefulweb.site/api/v1/calculate– run Pixel Grid TransformGET https://fliplinepixeltransform.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Pixel Grid Transform
Enter a compact pixel grid and HEX palette. Transform it with exact integer coordinates, optional wrapping and transparent pixels, then download an editable Flipline Pixel Studio project.
| Field | Type | Default | Description |
|---|---|---|---|
rows | textarea | "..1..\n.121.\n12321\n.121.\n..1.." | Pixel rows (. = transparent; 1–9 then A–W = palette entries) |
palette | text | "#213b45,#65a87b,#e6af61" | HEX palette (comma separated) |
operation | select (flip-x, flip-y, rotate, shift) | "rotate" | Operation |
dx | integer | 1 | Shift X (pixels) |
dy | integer | 0 | Shift Y (pixels) |
wrap | boolean | false | Wrap shifted pixels |
Example request
Rotate a tiny sprite
curl -X POST https://fliplinepixeltransform.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"rows":"1..\n.2.","palette":"#213b45,#65a87b","operation":"rotate"}'
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://fliplinepixeltransform.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_pixel_transform - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-pixel-transform
{
"mcpServers": {
"flipline-pixel-transform": { "type": "http", "url": "https://fliplinepixeltransform.usefulweb.site/mcp" }
}
}