Submit Graph Intent
submit_graph_intentSubmit a graph change intent to register pending node and edge modifications for review before git commit. Provide intent_json with new or updated nodes, dependency edges, and work notes.
Instructions
提交图变更意图请求(开发完成后的必经步骤)。缓存为 pending,git 提交后由 review 核验。
何时必须调用:
完成任何涉及图变更的开发任务后、创建 git commit 之前
变更包括: 新增/修改节点(模块/数据结构/需求)、新增/删除依赖边
何时不需要:
未产生任何结构变更的纯阅读/查询任务
参数:
intent_json: JSON 字符串,结构: {task_id, base_revision, nodes_to_create:[{id,label,props}], nodes_to_update:[{id,props}], edges_to_create:[{from,type,to,props}], edges_to_remove:[{from,type,to}], work_notes, summary, actor} work_notes 必填工作过程状态: 为什么这么改、考虑过什么备选(下一个实例靠它重建场景)
返回: {status: "pending", task_id, path} 注意: 本工具只缓存不写入——review 失败(git 提交被拒)时 pending 不会进图。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| intent_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||