Update Memory
update_memoryUpdate stored memories to correct inaccuracies or add missing details. Modify content, tags, importance, and metadata to keep information accurate.
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 |
|---|---|---|---|
| tags | No | New tags (replaces existing) | |
| type | No | Memory type classification | |
| content | No | New content (replaces existing) | |
| t_valid | No | ISO 8601 timestamp when the memory becomes valid | |
| metadata | No | New metadata (merged with existing) | |
| memory_id | Yes | ID of the memory to update (from store_memory or recall results) | |
| t_invalid | No | ISO 8601 timestamp when the memory expires or was superseded | |
| timestamp | No | Override creation timestamp | |
| confidence | No | Confidence score for the memory | |
| importance | No | New importance score | |
| updated_at | No | Explicit update timestamp | |
| last_accessed | No | Last access timestamp |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Confirmation message | |
| memory_id | Yes | ID of the updated memory |