update_mindmap_seed
Update an agent-seeded mindmap with validated content, syncing both content and seed snapshot to prevent old versions from resurfacing.
Instructions
修复/迭代你自己播种的课程脑图, 拓扑不再一锤定音. 只对 source=agent 的图开放 (学习者自己长出来的图不许 agent 动, 会打 PERMISSION); content 走与 add_mindmap_seed 一致的全套校验(字段合同见 add_mindmap_seed 说明, 完整教程 docs/recipes/mindmap-authoring.md). 写入会同时同步 content 与 agent_seed_snapshot 两列 — 有过案底: 只改 content 会让 Clear & redo(从 agent_seed_snapshot 复原)诈尸出你改之前的旧方言图, 这里两列一起写, 新内容即是新种子, 免疫诈尸.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | MindmapContent — { nodes: MindmapNode[], links: MindmapLink[] }, 全量替换(不是 patch) | |
| mindmap_id | Yes | 必须是当前 pair 名下、已存在、且 source=agent 的 mindmap id (服务端先验归属+存在性, 别人 pair 的图一律 NOT_FOUND, 再验 source) | |
| idempotency_key | No | 可选。幂等键 (建议 uuid) —— 同一 key 重放此调用返回首次结果, 不重复写入. 网络重试/断线重连时带上同一个 key, 而不是猜"上次到底写没写". |