ingest_diagram
Parse architecture or flow diagrams (Mermaid, PlantUML, DOT, or text) into structured semantic fragments for context memory, making diagram knowledge retrievable via optimization and recall.
Instructions
Ingest an architecture or flow diagram into the context memory.
Converts Mermaid, PlantUML, DOT/Graphviz, or informal diagram text into a structured semantic fragment capturing nodes, edges, and relationships. The result is stored as a normal context fragment and is retrievable by optimize_context and recall_relevant.
Args: diagram_text: Raw diagram source (Mermaid/PlantUML/DOT/text description). source: Identifier (e.g., 'arch_overview.mmd', 'db_schema.puml'). diagram_type: 'mermaid', 'plantuml', 'dot', 'text', or 'auto' (default).
Returns JSON with ingestion result (same as remember_fragment).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| diagram_text | Yes | ||
| diagram_type | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |