upsert_memory_node
Create or update memory nodes in a semantic graph to represent concepts, files, symbols, or notes with auto-generated embeddings for linking and retrieval.
Instructions
Create or update a memory node in the linking graph. Nodes represent concepts, files, symbols, or notes with auto-generated embeddings. If a node with the same label and type exists, it updates content and increments access count. Returns the node ID for use in create_relation.
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": {
"type": "<type>",
"label": "<label>",
"content": "<content>"
},
"name": "upsert_memory_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Node type: concept (abstract ideas), file (source files), symbol (functions/classes), note (free-form). | |
| label | Yes | Short identifier for the node. Used for deduplication with type. | |
| content | Yes | Detailed content for the node. Used for embedding generation. | |
| metadata | No | Optional key-value metadata pairs. |