update_memory
Update stored facts when information changes or errors are corrected. Replaces previous content entirely, preserving linkage through metadata.
Instructions
Update an existing memory when information changes or needs correction.
When to Use
Same fact changes ('User now prefers light mode instead of dark')
More precise info becomes available ('Project uses PostgreSQL 16, not 15')
User corrects previous information
Correcting errors in stored facts
Post-Response Correction Pattern
After responding, if user provides CORRECTIONS or UPDATED information:
Search for existing memory on the topic
If found → UPDATE the existing memory
If not found → ADD new memory (don't force update on genuinely new topics)
Storage Decision
ADD NEW for genuinely new topics
UPDATE existing when same fact changes
If unsure, prefer ADD - storing multiple perspectives is safer than losing context
The text field replaces content entirely; metadata (runId) preserves linkage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Memory ID to update (from get_memory or search results). | |
| text | No | Updated memory content - replaces previous text entirely. | |
| metadata | No | Metadata updates (only runId supported for linkage to new sessions). |