drawio-svg
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_drawio_svgA | Generate a .drawio.svg file from a diagram description. The file works in two ways simultaneously: (1) editable in draw.io / VS Code draw.io extension, (2) embeddable as SVG in Markdown design documents with |
| read_drawio_svgA | Read an existing .drawio.svg file and return its diagram as structured JSON (nodes, edges, groups, layout). To understand the diagram content — e.g. what components exist, how they are connected, and which group they belong to — read the returned JSON directly: nodes[].label: component names; edges[].source / .target / .label: connectivity and protocol; groups[].label / .children: logical boundaries (VNet, resource group, etc.). Visual styles are returned as style_overrides on each element (e.g. nodes[].style_overrides.fill_color, edges[].style_overrides.stroke_color, groups[].style_overrides.font_size). These CSS-equivalent properties (fill_color=background-color, stroke_width=border-width, font_bold=font-weight:bold, opacity=opacity, etc.) enable full round-trip: read style_overrides → pass them back to edit_drawio_svg to preserve or modify styling. Typical workflows: (1) read_drawio_svg → edit_drawio_svg: targeted add/remove/update; node icons and styles are preserved automatically. (2) read_drawio_svg → create_drawio_svg: full rebuild; icons are NOT carried over from the file, specify them via icon_path or icon_data_uri. Node/group IDs are draw.io internal numeric IDs (e.g. "2", "15"). Edge source/target also use these numeric IDs. These IDs are stable across preserve-mode edits; use them in edit_drawio_svg to reference existing elements. Icon data is NOT included in the response (use has_icon flag to see which nodes have icons). Note: layout is automatically recomputed when regenerating. |
| edit_drawio_svgA | Edit an existing .drawio.svg file by adding, removing, or updating nodes, edges, and groups. Use numeric IDs from read_drawio_svg to reference existing elements (e.g. remove_nodes: ["15"], update_nodes: [{id: "15", ...}]). For add operations, use temporary IDs to establish relationships within the same call (e.g. add_nodes: [{id: "new", ...}], add_edges: [{source: "15", target: "new"}]). By default (layout_mode: "preserve"), existing node and group positions are kept exactly as-is; only newly added elements are placed automatically outside the existing layout. Use layout_mode: "recompute" to fully recompute layout with ELK. Icons of existing (unchanged) nodes are preserved automatically — no need to pass icon data. To replace an icon on an existing node, use update_nodes with icon_path. Removing a group does not delete its child nodes — they become top-level nodes. All add/update operations support style_overrides for CSS-equivalent per-element visual customization: add_nodes/update_nodes (fill_color=background-color, stroke_color=border-color, stroke_width=border-width, stroke_dashed=border-style:dashed, font_bold=font-weight:bold, font_size=font-size, font_color=color, opacity=opacity, rounded=border-radius, shadow=box-shadow, text_align=text-align, etc.); add_edges/update_edges (stroke_color, stroke_width, stroke_dashed, font_color, font_size, opacity, etc.); add_groups/update_groups (fill_color, stroke_color, stroke_width, stroke_dashed, rounded, corner_radius=border-radius%, font_color, font_size, font_bold, opacity, text_align, shadow, etc.). update_edges also supports label, style (solid/dashed), connector, and arrow changes — identified by source+target pair. style_overrides from read_drawio_svg can be passed back to preserve or selectively override existing styles. IMPORTANT: style_overrides in update_nodes/update_edges/update_groups are MERGED with existing styles — only specified properties are changed, unspecified properties are preserved. You do NOT need to re-specify all existing style_overrides when making a partial update. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
The three tools map cleanly to distinct lifecycle operations: create, read, and edit. Their descriptions make the boundaries explicit, especially the read → edit and read → recreate workflows, so an agent should not confuse them.
All tools follow a consistent snake_case verb_noun pattern: create_drawio_svg, read_drawio_svg, edit_drawio_svg. The shared noun suffix makes the family immediately recognizable.
Three tools are tightly scoped to the single-file drawio SVG workflow, and each operation earns its place. There is no redundant or filler tooling.
The set covers creation, inspection, and editing, including element-level add/remove/update and style round-tripping. A file-level delete or listing operation is absent, but those are minor gaps outside the core diagram lifecycle.