coras_read_diagram
Read a .dgx file to output its structured spec and CORAS text notation, with optional rendering for inspection or rewriting.
Instructions
Read an existing .dgx file and return it as a structured spec and as the CORAS text notation, so it can be inspected or rewritten. Optionally renders it so you can see the current state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The .dgx file to read. | |
| scale | No | ||
| format | No | What to return, default 'both'. | |
| preview | No | Also render it as an image. |