Write Stories
kuickr_story_writeAuthor and accept canonical Story packages, create a live-reference storyboard, and generate versioned book/manga/game expressions. Every edit accepts expected_digest for stale-write protection; expressions only use accepted revisions and never overwrite divergent output silently.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"org": "<org>"
},
"name": "kuickr_story_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | action=create: the Story's id inside its package. | |
| org | Yes | Space slug. | |
| data | No | action=operate: the fields of that edit, such as the chapter or scene being added. | |
| slug | No | action=create: the new Story Folder's slug. | |
| title | No | action=create: the Story's title. | |
| action | Yes | create starts a Story; operate applies one edit; accept saves the Story as a revision; storyboard lays its scenes on a Board; express generates a book, manga or game from a revision; regenerate replaces an expression's generated Pages. | |
| folder | No | The Story's Folder slug; every action but create needs it. | |
| operation | No | action=operate: the edit to apply. | |
| expression | No | action=express: book, manga or game. | |
| output_slug | No | action=express: slug of the Folder the expression is written to. | |
| revision_id | No | action=express or regenerate: the accepted revision to generate from. | |
| expression_id | No | action=regenerate: the expression to regenerate. | |
| expected_digest | No | The digest the Story was read at, from kuickr_story_read; a changed Story refuses the edit. Required for accept. | |
| reading_direction | No | Reading direction of the expression: ltr or rtl. | |
| expected_output_digest | No | action=regenerate: the expression's output digest as last returned; changed output refuses the overwrite. |