parent
(string, optional): Parent node ID (default: "root")
How to use it
parent is exposed by the Drawio MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the parent tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
FULL DRAWIO MCP LISTINGOther tools in Drawio MCP (24)
Add one or more nodes to an existing diagram in a single operation. Optionally run an automatic layout after insertion.
(string, required if layout is provided): One of hierarchical, circle, organic, compact-tree, radial-tree, partition, stack
(integer, optional): Corner radius in pixels (≥ 1). Only applies to RoundedRectangle. Default is 12 when kind is RoundedRectangle and cornerradius is omitted. The effective visual radius is capped by draw.io/mxGraph to at most half of the shorter side of the node.
(boolean, optional): Whether to use dashed line style
(array, required): Array of edge objects to create, each containing:
Modify properties of one or more existing nodes or edges in a single operation.
(string, required): Path for the new diagram file
(string, required): Source node ID
Retrieve information about a diagram including nodes and connections.
(number, optional): Custom height
(string, required): Unique identifier for the node
(array, required): Array of node IDs to remove
(string, required): Node shape type
(object, optional): Automatic layout configuration
Create one or more connections between existing nodes in a single operation.
Create a new empty diagram file.
(array, required): Array of node objects to add, each containing:
Remove one or more nodes from a diagram.
(boolean, optional): Whether to reverse arrow direction
Rectangle with rounded corners (supports cornerradius in pixels)
(string, required): Display label (supports newlines with \n)
(string, required): Target node ID
(boolean, optional): Create an undirected edge (no arrows). Overrides reverse.
(number, optional): Custom width