API
Use $glyphfield-api for live catalog discovery, deterministic HTTP generation, batches, and apply-ready Design Lab sequences.
$glyphfield-api owns deterministic, browser-independent discovery and generation. Use it for template SVG, background SVG, element briefs, batch work, and apply-ready Design Lab sequences.
Invoke it
Use $glyphfield-api to discover the current slide contract and generate a set
of source-controlled agenda slides for the General Translation identity.Discover before generating
- Read
/api/agentfor current interfaces, policies, resources, and generation kinds. - Read
/api/labsinstead of hard-coding the Studio tool list. - Read the relevant
/api/materials,/api/identities,/api/elements, or/api/catalogresource. - Read
GET /api/generateimmediately before constructing a POST body. - Use
/openapi.json,/llms.txt, or/llms-full.txtwhen the job needs the complete contract.
curl -fsS http://localhost:3012/api/agent
curl -fsS http://localhost:3012/api/generateGeneration kinds
| Kind | Result |
|---|---|
template | Deterministic slide, blog-cover, or partnership SVG |
background | Deterministic gradient, pattern, dither, or tactile surface SVG |
element-brief | One catalog element resolved against an identity |
design-sequence | An apply-ready layered composition with shader timeline and Browser API commands |
Use output: "raw" for direct SVG where the live contract permits it. Other responses use the structured artifact envelope. A design-sequence requires the browser for authentic Canvas/WebGL raster or motion output.
Contract boundaries
- Send
Content-Type: application/jsonand only fields returned by current discovery. - Do not invent identity, material, element, surface, or tool IDs.
- Do not send remote asset URLs. Use supported data URLs or an authorized browser
File. - Treat structured
400,413,415, and429responses as actionable errors; never retry unchanged invalid input. - Remember that HTTP generation does not mutate the open Studio project.
For a rendered Design Lab result, continue with $glyphfield-studio. For file validation, use $glyphfield-export.