Novel Archive Management
manage_archiveExport, import, archive, unarchive, clone, branch, and manage checkpoints for novel state, with dry-run, merge, replace, and strict import modes plus undoable restores.
Instructions
Manage Novel archival and checkpoint surfaces. Export writes a file; import writes Novel state and mode selects dry-run (validate only), merge (keep existing entries), or replace (discard current Novel state), while strict aborts on unresolved references. archive is reversible with unarchive; checkpoint_restore replaces the live Novel with the stored checkpoint and is itself undoable; checkpoint subscriptions persist. Use when: exporting or importing a Novel, archiving/unarchiving, cloning/branching, or managing checkpoints. Do NOT use when: creating, resuming, renaming, or ending a Novel — use manage_novel. Revert the most recent mutation with manage_history (action: undo); checkpoint_list is read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Exported Novel JSON (import). | |
| mode | No | dry-run, merge, or replace (import). | |
| slug | No | Novel slug (resume/switch/archive/unarchive/info). | |
| label | No | Checkpoint label (checkpoint_set/list/restore/remove). | |
| scope | No | Export scope (export). | |
| action | Yes | export, import, archive, unarchive, clone, branch, checkpoint_set, checkpoint_list, checkpoint_restore, checkpoint_remove. | |
| format | No | Output format (export). | |
| strict | No | Fail on any cross-reference mismatch (import). | |
| new_name | No | Name for the copy or branch (clone/branch). | |
| from_event | No | Event-log ordinal to branch from (branch; default latest). | |
| source_slug | No | Novel to copy or branch from (clone/branch). | |
| include_checkpoints | No | Include checkpoints in export (default false; export). | |
| trim_audit_sessions | No | Keep only the most recent N sessions' audit entries in the clone (clone; default full copy). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Human-readable text envelope mirroring the structured result (REQ-001, REQ-548a). | |
| status | Yes | Machine-readable result status: OK, NEED_INPUT, WARNING, PARTIAL, or an error category (REQ-002, REQ-548c). |