API & MCP
Everything a person can do on Perspective Guide Generator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://fliplineperspectiveguide.usefulweb.site/api/v1/calculate– run Perspective Guide GeneratorGET https://fliplineperspectiveguide.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Perspective Guide Generator
Set a horizon, vanishing points and ray density to generate a transparent SVG guide for painting, illustration or animation.
| Field | Type | Default | Description |
|---|---|---|---|
width | integer | 1200 | Canvas width (px) |
height | integer | 800 | Canvas height (px) |
mode | select (one, two) | "two" | Perspective |
horizon | number | 45 | Horizon from top (%) |
first | number | 15 | First vanishing point from left (%) |
second | number | 85 | Second vanishing point from left (%) |
rays | integer | 16 | Target rays per point |
lineColor | text | "#4E7FAD" | Ray color (six-digit HEX) |
horizonColor | text | "#E88755" | Horizon color (six-digit HEX) |
opacity | number | 40 | Guide opacity (%) |
Example request
A two-point room guide
curl -X POST https://fliplineperspectiveguide.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"width":1200,"height":800,"mode":"two","horizon":45,"first":15,"second":85,"rays":16}'
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://fliplineperspectiveguide.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
flipline_perspective_guide - Local stdio connector:
node src/mcp-stdio.ts --tool=flipline-perspective-guide
{
"mcpServers": {
"flipline-perspective-guide": { "type": "http", "url": "https://fliplineperspectiveguide.usefulweb.site/mcp" }
}
}