Query Impact
query_impactAssess change impact on a code architecture graph by tracing downstream affected nodes or upstream dependencies for any given node. Use before modifying structures or planning cross-module tasks.
Instructions
查询一个图节点的变更影响范围(谁会被这个节点的变更波及)。
何时必须调用:
修改任何已有数据结构、模块或需求之前
收到图变更通知、评估自己负责区域是否需要更新时
规划跨模块任务、需要完整依赖上下文时
何时不需要:
纯新增且明确无下游依赖的独立模块
参数:
node_id: 图节点 id(命名规范: data:user_table / module:auth_svc / req:login)
direction: "downstream"=谁被我影响 / "upstream"=我依赖谁
返回: [{id, layer, type, status, summary, path, hops}] 按传播距离排序。 返回的 path 是指针——细节由 skill 按指针从源头加载,不要向本工具索要内容全文。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| direction | No | downstream |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |