drawman

v0.2.12
drawman Checked 1 day ago Published 6 hours ago

draw.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…

ParameterTypeDescription
interfaces *array
nodes *array
title *stringDiagram title, e.g. 'Order Platform - GCP Architecture'
containersarrayONLY containers the user's request explicitly names (e.g. 'inside the VPC', 'in the payments namespace'); never invent them
directionstringonly 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
repositorystringOnly after analyze_repository handed you its evidence: the repository name it reported
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestringContext line, e.g. 'my-project · europe-west3'
workspacestringAbsolute 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…

ParameterTypeDescription
interfaces *array
nodes *array
title *string
directionstringonly 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
groupsarrayONLY containers the user's request explicitly names (e.g. 'inside the VPC', 'in the payments namespace'); never invent them
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestring
workspacestringAbsolute 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…

ParameterTypeDescription
connections *array
nodes *array
title *string
directionstringTB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top
lanesarraySwimlanes, only when the user asks for them or roles/departments matter, e.g. [{id:'customer',title:'Customer'}]
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestring
workspacestringAbsolute 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…

ParameterTypeDescription
messages *arraymessages and control items (fragment / else / end / note) in time order
participants *array
title *string
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestring
workspacestringAbsolute 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…

ParameterTypeDescription
states *array
title *string
transitions *array
directionstringTB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestring
workspacestringAbsolute 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…

ParameterTypeDescription
classes *array
relationships *array
title *string
directionstringTB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestring
workspacestringAbsolute 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…

ParameterTypeDescription
entities *array
relationships *array
title *string
directionstringTB top-down (default), LR left-to-right, RL right-to-left, BT bottom-to-top
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestring
workspacestringAbsolute 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…

ParameterTypeDescription
repository *stringThe 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
focusstringoptional emphasis, e.g. 'runtime only' or 'show the SAP integration'
refstringbranch or tag (default: the default branch)
workspacestringAbsolute 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…

ParameterTypeDescription
diagram *stringthe diagram id given in the result of the tool that drew it
add_connectionsarraynew interfaces / connections / relationships / transitions / messages, with the same fields the drawing tool uses
add_groupsarraynew containers (architecture), groups (create_diagram) or lanes (flowchart)
add_nodesarraynew nodes / tables / classes / states / participants, with the same fields the drawing tool uses; an existing id is updated instead
directionstring
removearrayids of nodes or groups to delete (their connections go too), or 'from>to' to delete a connection
savebooleanAlso write the .drawio file into the workspace (always done when the host has no live view)
subtitlestring
titlestring
updatearraychanged fields of existing nodes or groups, e.g. [{id:'db', title:'AlloyDB'}]
workspacestringAbsolute 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.

ParameterTypeDescription
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.

ParameterTypeDescription
diagram *string