canonicalize_node
Merges multiple nodes into one canonical node, consolidating aliases and redirecting edges to resolve duplicate entities after deduplication review.
Instructions
Manually merge multiple nodes into a single canonical node. All aliases from the merged nodes flow into the canonical node's aliases. All edges pointing to/from merged nodes are re-pointed to the canonical node. Merged nodes are deleted. Idempotent: merging an already-merged node is a no-op. Use this after reviewing dedup_candidates to resolve ambiguous duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Optional project or workspace name used to partition memory. | |
| agent_id | No | Optional agent or client identifier used to partition memory. | |
| node_ids | Yes | List of node IDs to merge into the canonical node. | |
| session_id | No | Optional conversation or run identifier used to partition memory. | |
| canonical_id | Yes | The canonical node ID to merge into. |