map_update_edge
[PUBLIC WRITE - TOPOLOGY LINK] Record or update (Upsert) a directional relation between two nodes in the Map Ledger (.braincell/map.jsonl). ROUTING vs SIBLINGS: Use map_update_edge to CREATE or MODIFY edge attributes/weight; use map_invalidate_edge to DEACTIVATE an existing edge without deleting lineage history. UPSERT SEMANTICS: Creates edge if absent, updates relation/weight if existing. RETURNS: { success: true, edge: { edge_id, from, to, rel, weight, status: "ACTIVE" } }. Side effects: Writes edge event to .braincell/map.jsonl WAL log.
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": {
"from": "<from>",
"to": "<to>",
"rel": "<rel>"
},
"name": "map_update_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target node ID (e.g. "cell_fact_02"). | |
| rel | Yes | Relation type (supports, why, depends_on, relates_to, part_of). | |
| from | Yes | Source node ID (e.g. "cell_skill_01"). | |
| weight | No | Edge weight or confidence score (0.0 to 1.0). | |
| edge_id | No | Optional explicit edge ID for targeted upsert. |