Upsert Node
upsert_nodeCreate or update a curated graph node for features, extensions, or notes. Use it to manually correct knowledge without a reindex overwriting your changes.
Instructions
Create or update one graph node. Prefer this for curated nodes (feature:, ext:, note: ids, or a manual correction to a code node) -- code nodes (file:/fn:) are normally written by index_repo instead, so a later reindex does not immediately overwrite what you just wrote.
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": {
"id": "<id>",
"kind": "<kind>",
"label": "<label>"
},
"name": "upsert_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| path | No | ||
| repo | No | ||
| label | Yes | ||
| vault | No | ||
| lineno | No | ||
| origin | No | manual | |
| status | No | verified | |
| summary | No | ||
| note_path | No | ||
| confidence | No | high |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |