API & MCP
Everything a person can do on SVG Repeat Pattern Generator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://luminarepeatpattern.usefulweb.site/api/v1/calculate– run SVG Repeat Pattern GeneratorGET https://luminarepeatpattern.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
SVG Repeat Pattern Generator
Make repeating dots, squares, diamonds, stripes or checkerboards with adjustable spacing, color and opacity. Preview and download a self-contained SVG with an optional transparent background.
| Field | Type | Default | Description |
|---|---|---|---|
shape | select (dot, square, diamond, horizontal-stripe, vertical-stripe, checkerboard) | "dot" | Mark shape |
width | integer | 672 | Canvas width (px) |
height | integer | 480 | Canvas height (px) |
spacing | integer | 48 | Tile spacing (px) |
size | integer | 16 | Mark size (px) |
foreground | text | "#264F59" | Mark color (six-digit HEX) |
background | text | "#F5EEDD" | Background (six-digit HEX or none) |
opacity | number | 1 | Mark opacity |
Example request
Ink dots on paper
curl -X POST https://luminarepeatpattern.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"width":672,"height":480,"spacing":48,"size":16,"shape":"dot","foreground":"#264F59","background":"#F5EEDD","opacity":1}'
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://luminarepeatpattern.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
lumina_repeat_pattern - Local stdio connector:
node src/mcp-stdio.ts --tool=lumina-repeat-pattern
{
"mcpServers": {
"lumina-repeat-pattern": { "type": "http", "url": "https://luminarepeatpattern.usefulweb.site/mcp" }
}
}