update_knowledge
Modify the knowledge graph by adding or removing entities and relationships to track architectural decisions, intents, tools, and code dependencies.
Instructions
ADR-018: Simple CRUD operations for knowledge graph. Add/remove entities (intents, ADRs, tools, code) and relationships. Use knowledge://graph resource to read current state (zero token cost).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Type of operation to perform on the knowledge graph | |
| entity | No | Entity ID (for add_entity/remove_entity operations) | |
| entityType | No | Type of entity (required for add_entity operation) | |
| relationship | No | Relationship type (for add_relationship/remove_relationship) | |
| source | No | Source node ID (for relationship operations) | |
| target | No | Target node ID (for relationship operations) | |
| metadata | No | Additional metadata for the entity or relationship |