Codex Library Management
manage_codexStore and manage reusable RPG content across Novels—NPCs, factions, rooms, spells, adventures, and voice profiles—so you can list, import, capture, or delete entries for later use.
Instructions
Manage the cross-Novels codex library of reusable content (NPCs, factions, rooms, spells, adventures, voice profiles). Mutating actions persist to the Novel and are audited; read-only actions do not mutate state. Revert the most recent mutation with manage_history (action: undo). capture's source_id falls back to entity_id; update_source requires artifact provenance. Use when: storing reusable content for later import, or enumerating/reading/deleting it. Do NOT use when: storing Novel-scoped content — use manage_lore (action: set) or manage_note (action: set).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Entry identifier or array of identifiers (for import/get/delete). | |
| kind | No | Entry kind (for set/list/capture). | |
| name | No | Entry name (for set). | |
| tags | No | Optional tags (for set). | |
| action | Yes | set (create/update), list, get, capture (Novel artifact per kind), import (into active Novel), or delete. | |
| content | No | Entry content (for set). | |
| entry_id | No | Entry identifier (for get/import/delete); alias of `id`. | |
| entity_id | No | Entity whose voice to capture (for capture, voice_profile kind). | |
| source_id | No | Novel artifact key/name/entity id to capture (for capture). Defaults per kind. | |
| visibility | No | library, shared, or private (for set). | |
| description | No | Optional description (for set). | |
| update_source | No | When true, update the source Codex entry in place (for capture). |
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). |