graph_add_node
Add nodes to a knowledge graph with 13 types including entities, facts, decisions, and more. Text content is automatically indexed for vector search, enabling semantic retrieval.
Instructions
Add a node to the knowledge graph. Supports 13 types (entity, fact, decision, thought, chunk, question, hypothesis, action, error, note, pattern, goal, constraint — all vectorized; session, task, subtask, fileref — graph only). Text in data.text or data.title is automatically indexed into Qdrant vector search for vectorizable types. For fileref nodes, pass path in data.path.
workspace_id is OPTIONAL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_id | No | Parent node ID (can be null for roots under session) | |
| type | Yes | Node type: entity|fact|decision|chunk|thought|question|hypothesis|action|error|note|pattern|goal|constraint|session|task|subtask|fileref | |
| workspace_id | No | Optional. Falls back to env/CWD folder name / 'default' | |
| data | Yes | JSON data: text/title/content for semantic content, path/filetype/description for fileref, plus tags array and any custom metadata |