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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "coras_read_diagram"
}
}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. |