API skill
Use the $glyphfield-api skill to read Glyphfield's live catalogs and generate SVGs, element briefs and Design Lab documents over HTTP without a browser.
$glyphfield-api covers discovery and generation over HTTP, which do not depend on a browser. Use it for template SVGs, background SVGs, element briefs, batch work and apply-ready documents for Design Lab, the Studio's layered composition tool.
Invocation
Use $glyphfield-api to discover the current slide contract and generate a set
of source-controlled agenda slides for the General Translation identity.Discovery
- Read
/api/agentfor the current interfaces, policies, resources and generation kinds. - Read
/api/labsinstead of hard-coding the Studio tool list. - Read the
/api/materials,/api/identities,/api/elementsor/api/catalogresource the task needs. - Read
GET /api/generateright before building aPOSTbody. - Use
/openapi.json,/llms.txtor/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 | An SVG slide, blog cover, OpenGraph image, terminal card or partnership lockup |
background | A gradient, grain-gradient, dither, pattern or tactile surface SVG |
element-brief | One catalog element resolved against an identity, as JSON |
design-sequence | An apply-ready layered composition with its shader timeline and Browser API commands |
Use output: "raw" for a bare SVG from template or background. Other responses use the JSON envelope. A design-sequence document needs the browser for Canvas and WebGL rendering and for raster or motion output.
Contract rules
- Send
Content-Type: application/jsonand only the fields that current discovery lists. - Do not invent identity, material, element, surface or tool IDs.
- Do not send remote asset URLs. Use base64 data URLs, or an authorized browser
Filein the Studio. - Read the JSON error of a
400,413or415response and fix the named field. Do not resend unchanged invalid input. A429comes from the deployment's edge rate limit. - HTTP generation does not change the open Studio project.
For a rendered Design Lab result, continue with $glyphfield-studio. To check the files, use $glyphfield-export.
Create skill
Use the $glyphfield-create skill to build and revise layered Design Lab compositions while keeping their source, layer IDs and layer order intact.
Studio skill
Use the $glyphfield-studio skill to operate an open Glyphfield Studio in the browser through accessible controls and exact source round trips.