ingest_diagram
Ingest architecture or flow diagrams into context memory as structured fragments for AI retrieval. Supports Mermaid, PlantUML, DOT, and text descriptions.
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 |