get_diagram
Retrieve a saved diagram in your preferred format to display or analyze it. Use 'svg-interactive' to show it visually or 'json' to reason about its structure.
Instructions
Read a diagram back: format='svg-interactive' to show it, 'json' to reason about it.
Formats: 'svg-interactive' (canvas drawing in a pan/zoom shell -- the one to SHOW), 'svg' (same drawing as a plain file, to attach or link), 'mermaid' (portable, but re-lays out and DISCARDS the arrangement the user made), 'text' (the prose projection), 'json' (the full graph with positions, notes and links -- the only round-trippable one, and the one to reason over).
Both SVG formats write the markup to a file and return its path plus a
thin index of the steps; the payload is deliberately too small to draw
from. The returned next_step says what to do with the path, at the
point where it matters: when the user asked to SEE the flow, reading the
file and emitting it inline is the work, not a cost to avoid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | the diagram. | |
| format | No | one of the formats above. | mermaid |
| offset | No | where a long `body`, or the SVG step index, starts; `next_offset`, when present, starts the next page. |