cg_maintain
Inspect the memory maintenance queue and perform graph upkeep: promote or reinforce nodes, consolidate source memories, backfill embeddings, and rebuild indexes.
Instructions
潮汐维护:查看维护队列(queue),晋升情景(promote),强化访问(touch),手动或 AI 智能凝结(consolidate / ai_consolidate),补全向量(backfill_embeddings),或重建索引(rebuild)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cg_maintain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | promote/touch 时的目标节点 ID | |
| op | No | 默认 queue | |
| limit | No | backfill_embeddings 批量上限,默认 50 | |
| title | No | consolidate 新节点标题 | |
| commit | No | ai_consolidate 时是否直接写入落盘,默认 false 仅预览草稿 | |
| summary | No | consolidate 提炼后的摘要正文 | |
| sourceIds | No | consolidate / ai_consolidate 的源节点 ID 列表 | |
| targetLayer | No | promote/consolidate 目标层 | |
| archiveSources | No | 凝结后是否归档非保护源节点 |