drawman
v0.2.12draw.io on steroids. Much cheaper, extremely fast, high-quality draw.io diagrams for AI coding agents: architecture, flowcharts, sequence, state, UML class and…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_architecture_diagram Create architecture diagram
Draw a cloud architecture diagram (draw.io) that the user watches being built live. Works for Google Cloud, Microsoft Azure, SAP BTP, on-premises SAP (S/4HANA, ECC, BW, GRC) and hybrid landscapes: each component is drawn inside the frame of its platform, with official GCP, Azure and SAP BTP icons. You only describe WHAT exists and HOW it talks; frames, zones, icons, orthogonal edge routing and the interface legend are computed deterministically, so never think about positions or coordinates. Large landscapes are fine. Write the arguments in this order: title, subtitle, then ALL nodes, then AL…
| Parameter | Type | Description |
|---|---|---|
interfaces * | array | |
nodes * | array | |
title * | string | Diagram title, e.g. 'Order Platform - GCP Architecture' |
containers | array | ONLY containers the user's request explicitly names (e.g. 'inside the VPC', 'in the payments namespace'); never invent them |
direction | string | only when the user asks: LR (or RL) lays containers / groups out left to right, TB (or BT) top to bottom; omit for the more compact one |
repository | string | Only after analyze_repository handed you its evidence: the repository name it reported |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | Context line, e.g. 'my-project · europe-west3' |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
create_diagram Create diagram
Draw ANY other connected diagram as a live, editable draw.io diagram: ML / neural-network architectures (e.g. a Transformer), system context diagrams, data pipelines in the abstract, concept maps, org charts, layered models. The user watches it build itself. You only describe groups, nodes and connections; the layout (nested groups placed along the flow with few crossings), icons and orthogonal edge routing are computed deterministically. For cloud / software infrastructure with real services (AWS, GCP, Azure, SAP, Kubernetes) use create_architecture_diagram. For flowcharts, processes, workflo…
| Parameter | Type | Description |
|---|---|---|
interfaces * | array | |
nodes * | array | |
title * | string | |
direction | string | only when the user asks: LR (or RL) lays containers / groups out left to right, TB (or BT) top to bottom; omit for the more compact one |
groups | array | ONLY containers the user's request explicitly names (e.g. 'inside the VPC', 'in the payments namespace'); never invent them |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
create_flowchart Create flowchart
Draw a flowchart as a live, editable draw.io diagram with real flowchart shapes: rounded start/end, process boxes, decision diamonds with Yes/No branches, data (input/output) parallelograms, documents, databases and sub-processes, optionally in swimlanes. Use it for processes, workflows, procedures, approval flows, decision trees, algorithms, user journeys and incident or support runbooks. The layout (rows along the flow, straight main line, branches beside it, merges below), shape sizes and orthogonal routing are computed deterministically: never think about coordinates. Write the arguments…
| Parameter | Type | Description |
|---|---|---|
connections * | array | |
nodes * | array | |
title * | string | |
direction | string | TB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top |
lanes | array | Swimlanes, only when the user asks for them or roles/departments matter, e.g. [{id:'customer',title:'Customer'}] |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
create_sequence_diagram Create sequence diagram
Draw a UML sequence diagram as a live, editable draw.io diagram (native UML lifelines, activation bars, fragments). Use it for API calls between services, request / auth / payment flows (OAuth, OIDC, SAML, checkout), message exchanges, "what happens when ..." questions and call chains in code. Layout, spacing, activation bars and fragment boxes are computed deterministically. Write title, then ALL participants, then ALL messages, in time order. - participants: {id, title, type?} left to right in the order they first act. type: actor, service, database, queue, external (also boundary, contro…
| Parameter | Type | Description |
|---|---|---|
messages * | array | messages and control items (fragment / else / end / note) in time order |
participants * | array | |
title * | string | |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
create_state_diagram Create state diagram
Draw a UML state machine (state diagram) as a live, editable draw.io diagram: lifecycles and statuses of orders, tickets, payments, documents, connections, workflows, protocol or UI states. Layout and routing are computed. Write title, direction, then ALL states, then ALL transitions. - states: {id, title, type?, detail?}. type is initial (the start dot, no title), final (end bullseye), state (default) or choice (a decision diamond). detail holds entry / do / exit activities, e.g. "entry / send email". - transitions: {from, to, event?, guard?, action?} drawn as "event [guard] / action". A s…
| Parameter | Type | Description |
|---|---|---|
states * | array | |
title * | string | |
transitions * | array | |
direction | string | TB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
create_class_diagram Create class diagram
Draw a UML class diagram as a live, editable draw.io diagram (native class boxes with attribute and method compartments). Use it for domain models, object-oriented designs, design patterns and the types in a codebase. Write title, direction, then ALL classes, then ALL relationships. - classes: {id, name, type?, attributes?, methods?}. type: class (default), interface, abstract or enum. attributes and methods are strings in UML notation, e.g. "- email: String", "+ placeOrder(cart: Cart): Order" (enum values go in attributes). Keep each list to the members that matter (max ~8). - relationsh…
| Parameter | Type | Description |
|---|---|---|
classes * | array | |
relationships * | array | |
title * | string | |
direction | string | TB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
create_er_diagram Create ER diagram
Draw an entity relationship (ER) / database schema diagram as a live, editable draw.io diagram: tables with their columns, primary and foreign keys, and crow's-foot relationships. Use it for database designs, data models and schemas (SQL, migrations, ORM models). Write title, direction, then ALL entities, then ALL relationships. - entities: {id, name, fields}. fields: {name, type, pk?, fk?} or strings like "PK id: uuid". Key columns first. - relationships: {from, to, cardinality, label?} with cardinality one-to-one, one-to-many (from = the "one" side, e.g. customers -> orders), many-to-one…
| Parameter | Type | Description |
|---|---|---|
entities * | array | |
relationships * | array | |
title * | string | |
direction | string | TB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
analyze_repository Analyze repository architecture
Read a real codebase and draw its architecture as a live draw.io diagram. Use whenever the user names a repository, codebase, project folder or git link ("draw the architecture of this repo", "diagram org/service", "how is X deployed"). Scans CI/CD workflows, Terraform (google/azurerm/btp), Bicep/ARM, SAP MTA descriptors (mta.yaml, xs-security.json, xs-app.json, CDS), Cloud Foundry manifests, Dockerfiles, dependencies and endpoints with file:line evidence (credentials are never read), then an architect model turns that into the diagram across GCP, Azure, SAP BTP and on-premises. Takes 20-60 se…
| Parameter | Type | Description |
|---|---|---|
repository * | string | The absolute path of the project folder (preferred for coding agents), "." for the workspace, a folder inside it, owner/repo on github.com, or an https git URL |
focus | string | optional emphasis, e.g. 'runtime only' or 'show the SAP integration' |
ref | string | branch or tag (default: the default branch) |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
edit_diagram Edit diagram
Change a diagram drawn earlier in this conversation by sending ONLY what changes. Use it for every follow-up change to an existing diagram (add, rename, restyle, regroup, rewire, remove): it takes seconds and a few tokens, and everything already drawn keeps its exact place and lines; only the new parts are laid out. Use a create tool only for a new or completely redesigned diagram. - diagram: the id from the result of the tool that drew it (and of every later edit). - add_nodes / add_connections / add_groups: new items with the same fields that tool uses (architecture: nodes, interfaces, con…
| Parameter | Type | Description |
|---|---|---|
diagram * | string | the diagram id given in the result of the tool that drew it |
add_connections | array | new interfaces / connections / relationships / transitions / messages, with the same fields the drawing tool uses |
add_groups | array | new containers (architecture), groups (create_diagram) or lanes (flowchart) |
add_nodes | array | new nodes / tables / classes / states / participants, with the same fields the drawing tool uses; an existing id is updated instead |
direction | string | |
remove | array | ids of nodes or groups to delete (their connections go too), or 'from>to' to delete a connection |
save | boolean | Also write the .drawio file into the workspace (always done when the host has no live view) |
subtitle | string | |
title | string | |
update | array | changed fields of existing nodes or groups, e.g. [{id:'db', title:'AlloyDB'}] |
workspace | string | Absolute path of the user's project (your current working directory). Coding agents should always pass it. |
remember_layout Remember layout
Records where the user moved shapes in the live view, so edit_diagram keeps them there.
| Parameter | Type | Description |
|---|---|---|
diagram * | string | |
positions * |
show_diagram Show diagram
Returns a diagram drawn earlier, for the live view to show while an edit is applied or to export.
| Parameter | Type | Description |
|---|---|---|
diagram * | string |