Preview diagram as text
preview_diagramRender diagram-as-code as text art for inline conversation display, avoiding file output. Use PNG rendering when an image file is required.
Instructions
Draw the diagram as text art so it can be shown directly in the conversation. Writes no file. Use render_diagram when a PNG is needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Diagram source code. Call diagram_syntax for the language reference. | |
| maxCols | No | Width of the drawing in characters. Default 110. |