Regenerate one illustration
regenerate_illustrationRe-render a single illustration with a prompt to produce a fresh take, replacing the cached image when setId is provided.
Instructions
Re-render a single illustration with the same (or a tweaked) prompt and aspect. Image models are non-deterministic, so this yields a fresh take. Returns the new image in _meta for the viewer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Required with setId — zero-based illustration index to replace. | |
| setId | No | If present, also replace the cached image so a viewer reopen sees the regenerated illustration. | |
| title | No | ||
| aspect | No | ||
| prompt | Yes | The illustration composition + 'Required text only:' block (style is re-applied server-side). | |
| quality | No | Image quality (OpenAI). Lower is faster & cheaper. Defaults to DOODLEWORKS_QUALITY env or 'low'. | |
| archetype | No | ||
| resolution | No | ||
| styleReference | No | Optional drawing-style reference for the whole set (style calibration only — the clean even line weight, the pure-white background, whitespace, restraint; NEVER the reference's character, layout, or text). Accepts a library id, a data-URI, or a local path. Per-illustration styleReference wins; with none set (and no DOODLEWORKS_STYLE_REF env), output is the engine's text-only style guidance. |