loom_memory_update
Update an existing saved fact by memory key when it changes or becomes more precise, preserving tags, confidence, and history instead of creating a duplicate.
Instructions
Update a saved fact by memory_key: the operation for "the fact changed or got more specific".
WHEN: a read (loom_memory_get or loom_search) returned this key and the user now states a new value, a correction, or a more precise version of it — 'the deploy day moved to Thursday', 'the budget is actually 40k'. It keeps the row's tags, confidence, expiry, lock and history; loom_memory_set would write a new version blind. Revision policy: if a read this session returned the key of a fact that has now changed or got more precise, update it under that same key with loom_memory_update — never save a second copy and never delete + re-save. A fact about a new subject or scope gets its own memory_key (include the project / scope token in the key). Do NOT use it for a genuinely new fact — call loom_memory_set.
Resolves the key across the namespace; pass agent/user_id/session_id only to narrow when the key is live under several writers (409 AMBIGUOUS_KEY lists them). updated=false with reason=not_found means the key has no live row — save it with loom_memory_set instead. Pass if_match_sha256 from the read for a no-clobber update. Given a memory_id rather than a key, call memory.update_by_id (via loom_op).
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": {
"memory_key": "<memory_key>"
},
"name": "loom_memory_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| value | No | ||
| reason | No | ||
| revive | No | ||
| run_id | No | ||
| concepts | No | ||
| namespace | No | ||
| char_limit | No | ||
| confidence | No | ||
| memory_key | Yes | ||
| if_match_sha256 | No |