memory_update
Updates an existing memory entry by ID, applying only the fields you change, recording an audit snapshot, and checking the expected version to avoid overwriting concurrent edits.
Instructions
更新一条记忆(只传需要修改的字段;HTTP 模式必须传 project);用户级记忆可从任意项目视图按 id 更新。修改会记录审计快照;内容失效优先用 memory_archive 归档而不是删除。
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>"
},
"name": "memory_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | No | ||
| tags | No | ||
| scope | No | 跨作用域迁移:user=移入用户级 / project=上提为项目通用 / device=限定本设备 / agent=限定本工具 | |
| title | No | ||
| pinned | No | ||
| status | No | ||
| content | No | ||
| project | No | 项目名或 id。省略时从当前工作目录自动解析 | |
| evidence | No | 证据链:这条结论从哪来的(最多 12 条)。有外部事实依据时务必填写,日后别人能据此复核 | |
| topic_key | No | ||
| importance | No | ||
| expected_version | No | 乐观并发:传你读到的 memory.version。若期间已被别人修改,报 REVISION_CONFLICT(附当前版本),避免用旧内容覆盖并发改动 |