rlm_remember
Save structured memory records (fact, decision, learning, preference, todo, context) for later semantic retrieval. Set ownership scope to agent, project, team, or user.
Instructions
Store a durable Memory V2 record for later semantic recall. Direct writes support fact, decision, learning, preference, todo, and context. Use the narrowest owner scope: agent for one agent role, project for one client/project/RFP, team for reviewed shared standards, and user for one person's preferences. Do not store source truth here; use rlm_context_query, rlm_load_document, or rlm_shared_context for specs, RFPs, diagrams, and raw docs. Use rlm_end_of_task_commit for workflow capture.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The memory text to store | |
| content | No | DEPRECATED: Use 'text' instead. The memory content to store. | |
| type | No | fact | |
| scope | No | Memory owner boundary. scope=agent requires agent_id; scope=user is personal to the authenticated user or integrator external_user_id; scope=team requires the current project to belong to a team. | project |
| agent_id | No | Required when scope=agent; identifies the agent-owned memory namespace | |
| external_user_id | No | Integrator client keys only: stable end-user ID for scope=user memory. Snipara hashes and namespaces it per integrator client. | |
| category | No | Optional category for grouping | |
| ttl_days | No | Days until expiration (null = permanent) | |
| related_to | No | IDs of related memories | |
| document_refs | No | Referenced document paths | |
| source | No | Optional source label for the memory write |