edit_story
Revise a worklore story the signed-in account PUBLISHED — only its author can edit it. Call get_story first, then show the human a before/after diff of your change and get their EXPLICIT approval before calling this; never edit on your own initiative. Send the COMPLETE revised story as markdown (frontmatter + '# title' + narrative + '## Reproduce this'), not a fragment. Keep the frontmatter date exactly as it is: it records when the work happened, and a revision never moves it. Say what kind of edit this is: 'rephrase' (same claims, better wording), 'addition' (new detail, nothing was wrong), or 'correction' (something in the story was WRONG — a step, a claim, a result). If anything was wrong, it is a correction: never hide a correction as a rephrase. A correction requires a one-line note saying what was wrong, and notifies everyone who reported reproducing the story. source optionally credits what prompted the revision (an https URL). The new text REPLACES the old (worklore keeps no copy of earlier text), while a record of this revision — when, what kind, the note — is appended to the story's public history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | rephrase (default) — same claims, reworded; addition — new detail, nothing was wrong; correction — something was wrong (requires `note`, notifies reproducers). | rephrase |
| note | No | One line on what changed (max 500 chars). Required for a correction: what was wrong. | |
| slug | Yes | The slug of the story to revise (one the signed-in account wrote). | |
| source | No | Optional https URL crediting what prompted the revision (a comment, an issue, an article). | |
| markdown | Yes | The complete revised story markdown, frontmatter included, with the original `date` unchanged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| slug | Yes | ||
| notified | Yes | ||
| revision | Yes | ||
| visibility | No |