Update Memory
update_memoryCorrect or enhance stored memories by updating content, tags, importance, or metadata, preventing duplicate entries.
Instructions
Update an existing memory's content, tags, importance, or metadata. Use this to correct or enhance memories rather than storing duplicates.
When to use:
To correct inaccurate information in a memory
To add tags that were forgotten
To adjust importance based on new understanding
To add metadata after the fact
Examples:
update_memory({ memory_id: "abc123", importance: 0.95 }) // Increase importance
update_memory({ memory_id: "abc123", tags: ["project-x", "critical", "auth"] }) // Add tags
update_memory({ memory_id: "abc123", content: "Updated: PostgreSQL chosen for ACID + team expertise" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | ID of the memory to update (from store_memory or recall results) | |
| content | No | New content (replaces existing) | |
| tags | No | New tags (replaces existing) | |
| importance | No | New importance score | |
| metadata | No | New metadata (merged with existing) | |
| timestamp | No | Override creation timestamp | |
| updated_at | No | Explicit update timestamp | |
| last_accessed | No | Last access timestamp | |
| type | No | Memory type classification | |
| confidence | No | Confidence score for the memory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memory_id | Yes | ID of the updated memory | |
| message | Yes | Confirmation message |