Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DIAG_WEAVER_PORTNoEditor HTTP port, defaults to 4782147821
DIAG_WEAVER_STORENoOverrides the snapshot root directory (still defaults to not being in the current working directory)
DIAG_WEAVER_NO_BROWSERNoSet to '1' to not automatically open the browser

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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
editor_ensureA

Open the local draw.io canvas in the browser if needed and wait until it is connected. Does not create store directories.

diagram_replaceA

Replace the whole diagram with Mermaid or draw.io XML. Loads into the live canvas and lets draw.io layout. Prefer this over many tiny geometry edits.

diagram_readA

Read the current diagram. Default is a compact cell summary for the agent. Pass format=xml for the full draw.io XML. Uses the live canvas if connected, otherwise the saved current.drawio. Does not create directories.

diagram_patchA

Apply a few structured edits (add_node, add_edge, set_label). Do not supply x/y; draw.io layout places new cells. Coordinates belong to the editor, not the model.

diagram_snapshotA

Copy the current diagram to a labeled snapshot under the user data directory (not the agent cwd).

diagram_restoreA

Restore a labeled snapshot onto the canvas. Omit label to list snapshots. Restore copies the snapshot to current and loads it; there is no separate checkout/rollback.

diagram_exportA

Write the current diagram to an explicit filesystem path as .drawio. Relative paths resolve against the process cwd. Will not write unless path is provided.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources