Picorn Blueprint: compile, review and preview
picorn_blueprint_compileCompile a PBL document you wrote (pbl) or apply #id patch lines to an earlier compile (blueprintId + patch). No model is called: Picorn searches the curated asset libraries, measures text with the real fonts, lays out, reviews and renders. Returns blueprintId, errors/warnings with codes and fixes, the scene report + ASCII wireframe (exact boxes, colours, effects, search hits), the canonical source and an inline preview of every slide. Patches reuse the cached asset searches, so iterate with small patches until errors=0 and the preview is visually finished. blueprintId alone re-sends the current revision (preview and report) without compiling. Set preview:false for an even faster text-only check. A line search q2 generate photo "…" (or generate text for lettering-heavy mockups) creates a NEW picture as ref when the library has nothing fitting; Library first: browse with picorn_search_library (or use search lines in picorn_blueprint_compile), and generate only when the design would benefit massively from a new picture (no fitting hero photo exists). Generation needs a connected Picorn account with credits; it is charged at 1.2 × the fal price (a Krea 2 Turbo picture of about 1 MP costs about 1 ct). Generated pictures are cached in the blueprint, so patches never pay twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pbl | No | Full PBL document starting with "pbl v1". Creates a new blueprintId. | |
| patch | No | Repair lines, e.g. "#title size=96 color=primary" or "#n12 delete". | |
| preview | No | Render the inline preview. Default true. | |
| blueprintId | No | From an earlier compile, together with patch (or alone to see the current revision again). |