memory_get_document
Retrieve stored documents and their fragments by key, with optional preview or full content, node kind filtering, and version selection.
Instructions
Retrieve a stored document and its fragments by document key.
Args: document_key: The document identifier used during storage content_mode: "preview" (default) or "full" for fragment content preview_chars: Max chars for preview mode (default: 120) node_kinds: Optional filter — e.g. ["claim", "plan_item"] for specific fragment types version: Optional version filter. If omitted, returns the latest version.
Returns: {root: {...}, fragments: [...] ordered by ordinal, document_key, version}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_key | Yes | ||
| content_mode | No | preview | |
| preview_chars | No | ||
| node_kinds | No | ||
| version | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |