memory_edit
Edit an existing memory's content or metadata to correct vendor information, update prices, or add context. Changes are tracked with an audit trail.
Instructions
Edit an existing memory's content or metadata.
Use this to correct wrong vendor information, update prices, or add context to an existing memory. Tracks edit history.
Args: id: The memory ID to edit. content: New content to replace the existing content. If omitted, content is unchanged. metadata: JSON string of metadata fields to merge into existing metadata. Example: '{"vendor": "bitrefill.com", "note": "price updated"}'
Returns: The updated memory record with old_content_preview for audit trail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| content | No | ||
| metadata | No | {} |