Update a quest journal
update-quest-journalRecord quest progress, completions, failures, or modifications in a Foundry VTT journal. Appends updates to existing pages or creates new secret notes, then verifies each write by reading it back.
Instructions
Write progress into a quest journal. Content that contains HTML tags is stored as sent; plain text is escaped and becomes paragraphs, with single line breaks kept. Markdown is not converted. Three ways:
Without pageId and newPageName: a section with a heading for the update type and today's date is added to the progress notes of the first text page (a completion as read-aloud text, everything else as a secret Gamemaster note). completion and failure also set the status in the overview to Completed or Failed.
With pageId: the content is appended to the end of that text page, without a heading.
With newPageName: a new page with a heading and the content as a secret note. Content with its own heading gets no generated one. Pass pageId or newPageName, not both. Every write is read back and compared in full before success is reported; the answer gives the lengths before and after, not the HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Append to this text page instead of the first one. Page ids come from list-journals. | |
| journalId | Yes | Id of the quest journal, from list-journals. | |
| newContent | Yes | The update, as HTML or plain text. | |
| updateType | Yes | Kind of update. | |
| newPageName | No | Create a new page with this name instead of changing an existing one. |