Read a diagram
diagram_getRead-onlyIdempotent
Reads a saved diagram by id or key. The default outline is a header (id, title, revision, time, hash), the brief, recent versions, one element per line nested by container, and edges as 'id: from -> to'. view 'dsp' returns the scene JSON; 'mermaid' returns Mermaid to edit and send back to diagram_edit. revision or asOf reads an earlier version; knownRevision, only what changed since; elements, only those elements and their neighbors.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The diagram's id or key | |
| asOf | No | 2026-06-30 (end of day, UTC) or ISO 8601 with an offset | |
| view | No | Default outline | |
| cursor | No | nextCursor from the previous page | |
| elements | No | Element ids to focus on | |
| revision | No | Omit for the latest | |
| knownRevision | No | A revision you already know |