Read Memory
read_memoryRead one exact authorized XMemo memory or Document in character windows.
Use a bare memory ID (e.g. returned by recall or search) for the initial read (offset 0). The response includes 'revision' (e.g. '<memory_id>@v') and 'version'. To continue reading long content across multiple pages (when 'has_more' is True), callers MUST pass the returned 'revision' as memory_id along with 'next_offset'. This pins continuation pages to that exact snapshot and prevents torn reads if concurrent updates occur between requests. Querying with a bare memory ID always resolves to the latest active version (head), which is unpinned and subject to version tearing across updates. A Document item's reference ('document:') reads the whole Document the same way. For a Document, 'anchor' (a heading path) with 'ordinal' (1 = its first chunk) starts the page at that section; continue with 'next_offset' and no anchor. 'version' pins like a revision; a Document that changed since returns version_changed=true and no content, so restart at offset 0. Embeddings are never returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum content characters in this page; defaults to 4000. | |
| anchor | No | Optional Document heading path to start the page at; leave offset at 0. | |
| offset | No | Zero-based character offset into this memory's content; defaults to 0. | |
| ordinal | No | Which chunk carrying the anchor to start at (1 = first); defaults to 1. | |
| version | No | Optional version pin, the same as a '@v<version>' revision. | |
| memory_id | Yes | Exact XMemo memory reference or 'document:<id>' returned by recall or search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |