Correct an artifact
memory_correctReplace an artifact's text after a user correction while preserving history and enforcing version checks, so stale edits are refused instead of overwriting newer content.
Instructions
Replace an artifact's text when the user corrects it, keeping its history. Only applies if expected_version is still its current version; otherwise it is refused with version_conflict, and you search again. Metadata you leave out is kept. Whatever was derived from the old version stops being served and its readers are notified. To remove something entirely, use memory_withdraw.
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": {
"artifact_id": "<artifact_id>",
"text": "<text>",
"expected_version": "<expected_version>"
},
"name": "memory_correct"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The corrected statement. | |
| aliases | No | Short names to find it again. | |
| parents | No | For a derived artifact: its new parents. Leave out to keep them. | |
| confidence | No | Declared, not computed. Leave out unless the user gave one. | |
| valid_from | No | UTC time it starts to apply, e.g. 2026-01-31T00:00:00Z. Leave out unless the user gave one; by default it applies now. | |
| artifact_id | Yes | The artifact_id returned when it was stored or found by memory_search. | |
| valid_until | No | UTC time after which it no longer applies. Leave out unless the user gave one. | |
| preconditions | No | Exact conditions a search must supply to see it. Leave out unless the user said it only holds under a condition: a search without these conditions will not return it. | |
| expected_version | Yes | The version_id of the ref you read. |