merge_nodes
Consolidate two graph nodes by repointing inbound edges and migrating outbound edges to a kept node, then deleting the duplicate; inspect body preview before appending unique content.
Instructions
Dedup: repoint drop's inbound edges to keep, migrate drop's outbound edges onto keep (deduped; a part_of conflict is a warning, never a failure), delete drop's file. Body is NOT auto-merged -- inspect dropped_body_preview and update_node(keep_id, ..., mode='append') first if unique content from drop should survive (pin R3).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keep_id": "<keep_id>",
"drop_id": "<drop_id>"
},
"name": "merge_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drop_id | Yes | ||
| keep_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kept | Yes | ||
| warnings | No | ||
| dropped_id | Yes | ||
| dropped_body_preview | Yes |