update_node
Update properties of an existing graph node by ID, with merge or replace mode.
Instructions
Update properties on an existing node.
Use this tool when: you need to modify a node's properties after creation. Do NOT use for: changing labels (use execute_gql), creating new nodes (use create_node), or deleting nodes (use delete_node).
Args: node_id: The ID of the node to update. properties: Key-value properties to set. Values can be strings, numbers, booleans, or lists. merge: If True (default), merge with existing properties (new keys are added, existing keys are overwritten, unlisted keys are kept). If False, replace all properties (unlisted keys are removed).
Returns: JSON with the updated node's id, labels, and properties.
Examples: update_node(0, {"age": 31}) # merge: keep other props update_node(0, {"name": "Alice"}, merge=False) # replace all props
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ||
| properties | Yes | ||
| merge | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |