API & MCP
Everything a person can do on 3D Scene and Render Pass Preview, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://kerfwisescenepreview.usefulweb.site/api/v1/calculate– run 3D Scene and Render Pass PreviewGET https://kerfwisescenepreview.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
3D Scene and Render Pass Preview
Render a small deterministic SVG preview from a Form Studio project or Render Desk recipe. Download the preview and editable recipe, then continue in Kerfwise with higher resolution and sampling.
| Field | Type | Default | Description |
|---|---|---|---|
project | textarea | "{\"format\":\"kerfwise-form\",\"version\":1,\"name\":\"Terraced forms\",\"units | Form project or render recipe JSON |
width | number | 96 | Preview width (px) |
height | number | 72 | Preview height (px) |
samples | number | 2 | Samples per pixel |
pass | select (beauty, albedo, normal, depth, shadow, object) | "beauty" | Render pass |
Example request
Terraced forms in soft light
curl -X POST https://kerfwisescenepreview.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://kerfwisescenepreview.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
kerfwise_scene_preview - Local stdio connector:
node src/mcp-stdio.ts --tool=kerfwise-scene-preview
{
"mcpServers": {
"kerfwise-scene-preview": { "type": "http", "url": "https://kerfwisescenepreview.usefulweb.site/mcp" }
}
}