add_memory
Store a new memory in Mem0 with optional user ID and metadata to preserve context for future recall.
Instructions
Store a new memory in Mem0
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"content": "<content>"
},
"name": "add_memory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The content to store as a memory | |
| user_id | No | User ID (defaults to env DEFAULT_USER_ID) | |
| metadata | No | Optional metadata |