remember
Store text or files in memory to build a searchable knowledge graph for AI agents, with optional session-scoped caching for temporary recall.
Instructions
Store data in memory.
Two modes depending on whether session_id is provided:
Without session_id (permanent memory): Runs the full add + cognify pipeline to ingest data and build the knowledge graph, then the self-improvement loop (improve) unless self_improvement=False.
With session_id (session memory): Stores the data in the session cache. Direct mode may also bridge it to the graph in the background; API mode uses typed cache entries and does not bridge to the graph. Omit session_id when the content should be stored as permanent graph memory.
Pass either data (text) or filename + content_base64 (a file
upload, up to 10 MB), not both. File uploads are permanent-memory
only and don't support session_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The text content to store. Mutually exclusive with filename/content_base64. | |
| filename | No | Original filename for a file upload. Used to derive the stored document's name. Requires content_base64. | |
| background | No | Queue permanent ingestion as a background task and return immediately instead of waiting for the pipeline. Use when the caller has a request deadline shorter than ingestion takes. Ignored with session_id, which is already fast. Errors surface via cognify_status, not the return value. | |
| session_id | No | Session ID. Stores in cache; direct mode may also bridge to the graph unless self_improvement is False. | |
| dataset_name | No | Target dataset name. Defaults to the current MCP client's agent-scoped dataset (e.g. "cursor_vscode_memory"), or "main_dataset" if no client identity is detected. | |
| ontology_key | No | One or more uploaded ontology keys for extraction (permanent mode only). API mode uses ontologies uploaded by the authenticated API user. Local mode uses the default user's ontology store. Omit to keep the configured server ontology. | |
| custom_prompt | No | Custom prompt for entity extraction (permanent mode only). | |
| content_base64 | No | Base64-encoded file content to ingest. Requires filename. | |
| self_improvement | No | False skips automatic improvement after permanent ingestion; add and cognify still run. In direct session mode, False disables the background session-to-graph bridge. API session entries are cache-only regardless of this flag. Default True. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |