memory_graph_upsert
Create or merge graph nodes and edges manually in a specific project without an LLM, using its official source sessions and observations. Writes provenance and returns node-key-to-ID mappings.
Instructions
Create or merge manually authored graph nodes and edges in an exact project without an LLM. Official session/observation sources must belong to that project. Node keys are request-local edge endpoints; sourceIndexes selects supporting source groups, or sharedSources=true explicitly shares all groups. existingNodeId targets one validated live node. Writes provenance and audit records; returns node-key-to-ID mappings and node/edge created/merged counts. Use memory_graph_query to inspect existing graph records first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | Relationships between request-local node keys | |
| nodes | Yes | Canonical nodes keyed locally for this request | |
| project | Yes | Exact registered project identifier | |
| sources | Yes | Official source sessions and observations | |
| sharedSources | No | Explicitly attach every source group to every node and edge. Required when multiple sources intentionally support multiple records and sourceIndexes are omitted. |