export_session
Export a session's complete structure, version history, and metadata as a portable JSON bundle for migration or archival, with optional embedded knowledge structures.
Instructions
Export a full session bundle for migration or archival. Unlike export_knowledge (which converts to RDF/JSON-LD), this tool packages the session's current structure, version history, and metadata into a self-contained JSON document that can be used to recreate the session in another runtime instance. Supports two formats: 'bundle' (default) — a complete migration envelope with version history; 'cks' — bare canonical CKS JSON of the current structure only. Set 'include_structures' to true to embed the full KnowledgeStructure for each historical version (may be large).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format: 'bundle' (default) — full migration envelope with metadata and version history; 'cks' — current structure only. | |
| session_id | Yes | The session to export. | |
| include_structures | No | Optional. When true and format='bundle', embed the serialized KnowledgeStructure for each version in the history (may produce a large payload for long-lived sessions). Default false. |