memory_update
Update memory metadata (tags, type, custom fields) in place without recreating entries, preserving content, embeddings, and timestamps; create versioned updates for content changes.
Instructions
Update memory metadata without recreating the entire memory entry.
This provides efficient metadata updates while preserving the original
memory content, embeddings, and optionally timestamps.
Examples:
# Add tags to a memory
{
"content_hash": "abc123...",
"updates": {
"tags": ["important", "reference", "new-tag"]
}
}
# Update memory type and custom metadata
{
"content_hash": "abc123...",
"updates": {
"memory_type": "reminder",
"metadata": {
"priority": "high",
"due_date": "2024-01-15"
}
}
}
# Update custom fields directly
{
"content_hash": "abc123...",
"updates": {
"priority": "urgent",
"status": "active"
}
}
# Create a new version with updated content (sqlite_vec and milvus)
{
"content_hash": "abc123...",
"updates": {
"content": "Corrected memory content",
"reason": "Fix outdated command"
},
"versioned": true
}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_hash": "<content_hash>",
"updates": "<updates>"
},
"name": "memory_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| updates | Yes | Dictionary of fields to update. With versioned=true only content, tags, memory_type and reason take effect. | |
| versioned | No | When true, creates a new memory version instead of overwriting and marks the old one as superseded. Requires content in updates. Supported backends: sqlite_vec, milvus. Unsupported backends return an error. | |
| content_hash | Yes | The content hash of the memory to update. | |
| preserve_timestamps | No | In-place updates only. When true (default), the original created_at is kept. When false, created_at/updated_at may be supplied via updates. Ignored with versioned=true. |