create_diagram
Create a diagram in a shared workspace and obtain its unique ID and shareable URL for team collaboration.
Instructions
Create a new diagram in the Space. Returns its id and shareable URL. See this server's instructions for diagram-type selection and class role names (edge/core/data/accent/muted) for color-grouping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Display name | |
| code | No | Mermaid source. Defaults to a tiny flowchart. | |
| style | No | Visual preset: midnight (default dark), paper, forest, ocean, mono. Omit to use the default. | |
| styleOptions | No | Optional layout knobs, independent of the color preset. Each key is optional; omit any to keep its default. Pass layout: 'auto' to let the server pick a concrete layout based on the diagram's shape. | |
| description | No | Overall purpose of the diagram (≤1000 chars). Shown to share-link viewers and surfaced back to the agent as the diagram's brief — write this before generating the code. | |
| folderId | No | Optional UUID of an existing folder to place the diagram in. Use list_folders first to find the right folder by name (e.g. 'Infra', 'Schemas'). Omit to place at the space root. |