twining_add_entity
Add or update a knowledge graph entity. Merges properties if entity with same name and type exists, returns entity ID.
Instructions
Add or update a knowledge graph entity. Uses upsert semantics: if an entity with the same name and type exists, its properties are merged and updated. Returns the entity ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Entity name (e.g., class name, file path, concept) | |
| type | Yes | Entity type: "module", "function", "class", "file", "concept", "pattern", "dependency", "api_endpoint" | |
| properties | No | Key-value properties for this entity (max 50 entries, values ≤1000 chars) |