create-journal
Creates a multi-page journal entry with text or image pages. Supports optional folder placement and per-page player visibility as a handout.
Instructions
Create a generic multi-page JournalEntry from caller-supplied pages. Each page is either a TEXT page ({name, content} — HTML, Foundry v13 ProseMirror) or an IMAGE page ({name, kind:"image", src, caption?} — a picture page, e.g. a map legend key), so an image-only journal builds in one call. Unlike create-quest-journal (styled blocks, auto-folders), this takes explicit pages and only folders when folderName is given. Per-page playerVisible exposes a handout; otherwise GM-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Journal entry name. | |
| pages | Yes | Ordered pages — each a TEXT page (HTML content) or an IMAGE page (kind:"image" + src). Each needs a name; text content is HTML (may be empty). | |
| folderName | No | Optional folder to place the journal in (created if absent). |