API & MCP
Everything a person can do on Screentone Pattern Maker, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://fliplinescreentone.usefulweb.site/api/v1/calculate– run Screentone Pattern MakerGET https://fliplinescreentone.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Screentone Pattern Maker
Generate a repeating vector screentone, inspect its nominal ink coverage and lines per inch, and download an SVG or reusable tone recipe. Open it as a Comic Desk study or apply the recipe to an existing panel.
| Field | Type | Default | Description |
|---|---|---|---|
pattern | select (dots, lines, crosshatch) | "dots" | Tone pattern |
pitch | integer | 14 | Tone pitch (px) |
coverage | integer | 20 | Tone coverage (%) |
angle | integer | 45 | Tone angle (°) |
dpi | integer | 150 | Tone resolution (DPI) |
width | integer | 600 | Swatch width (px) |
height | integer | 400 | Swatch height (px) |
ink | text | "#253e45" | Tone ink (HEX) |
Example request
A 20% dot tone
curl -X POST https://fliplinescreentone.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{}'
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://fliplinescreentone.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_screentone - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-screentone
{
"mcpServers": {
"flipline-screentone": { "type": "http", "url": "https://fliplinescreentone.usefulweb.site/mcp" }
}
}