Session Management
manage_sessionHandle session-level diagnostics, verbosity, briefing order, health checks, and tool discovery for Holonovel; append or read the Novel event log.
Instructions
Manage session-level surfaces, diagnostics, and tool discovery. event with supersede appends a replacement and marks that ordinal superseded. Use when: recapping recent activity (recap), setting output verbosity (verbosity), reordering briefing sections (briefing_order), summarizing the audit log (compress) or compacting it irreversibly (compact), reporting server health (health), discovering or searching the tool catalog (discover), reassigning a tool's category for the session (category), or appending and reading the Novel event log (event, history). Category reassignment, event append, and audit compaction mutate Novel-scoped state and persist; recap/verbosity/briefing_order/health/discover/history are read-only diagnostics or session-scoped settings. Do NOT use when: recording story content — use manage_story (action: record).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | normal or terse (verbosity). | |
| text | No | Observation text (event). | |
| query | No | Optional search term matched against tool name, description, and title (discover). | |
| action | Yes | recap, verbosity, briefing_order, compress (non-mutating audit summary prompt), compact (GM-only irreversible audit-log compaction), health, subscribe, discover (list/search tools), category (reassign a tool's category), event (append an observation), or history (read the event log). | |
| source | No | Event source classification (event). | |
| topics | No | Notification topics to subscribe to (subscribe). | |
| category | No | New category label, or null/empty to restore the default (category). | |
| gm_notes | No | GM-only free-text notes returned only to the Game Master badge (recap). | |
| sections | No | Ordered list of briefing sections (briefing_order). | |
| sessions | No | Number of recent sessions to retain live; triggers irreversible compaction (compact; default TTRPG_AUDIT_RETENTION_SESSIONS). | |
| supersede | No | Ordinal of an event this observation replaces (event). | |
| tool_name | No | Registered tool name to reassign (category). | |
| session_id | No | Archived session id to include in recap (recap). | |
| max_entries | No | Positive integer; returns a non-mutating summarize prompt over the most recent entries (compress). | |
| through_ordinal | No | Return events up to and including this ordinal (history). | |
| include_superseded | No | Include superseded events (history; default true). |
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). |