Delete story
delete_storyPermanently removes a story's local records—branches, turns, profiles, summaries, and write records—requiring confirm=true and the expected revision to prevent accidental deletion.
Instructions
Delete a story's local records: its branches, turns, profiles, summaries and write records. This is destructive and cannot be undone. It requires confirm=true and the current expected_revision.
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": {
"story_id": "<story_id>",
"confirm": "<confirm>",
"expected_revision": "<expected_revision>"
},
"name": "delete_story"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | ||
| story_id | Yes | ||
| expected_revision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| deleted | Yes | ||
| story_id | Yes | ||
| deleted_counts | Yes |