Patch workfile memory
project_memory_patchPatch project memory records with selective field and body updates. Uses optimistic concurrency to reject stale writes and prevent lost edits.
Instructions
Patch a durable memory record using optimistic concurrency. To retire one in favour of another use project_memory_supersede, which updates both sides.
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": {
"id": "<id>",
"changes": "<changes>"
},
"name": "project_memory_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Memory record to patch: LRN-, ADR-, INC-, CONV- or CTX-. | |
| changes | Yes | Frontmatter fields to overwrite — status, tags, related, owners and the collection-specific fields — plus body to replace the Markdown. Only the keys present are touched. | |
| expectedRevision | No | Revision string from an earlier read of this record. The write is refused if it no longer matches, so a concurrent edit is reported rather than overwritten. Omit to skip the check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A canonical record with its body, revision and reference graph. |