create_edge_with_view
Connect views on a diagram with a typed relationship edge (UMLAssociation, UMLControlFlow, etc.) using source and target view IDs.
Instructions
Connect two existing Views on a diagram with a typed relationship edge. Edge types: 'UMLAssociation' (use case), 'UMLControlFlow' (activity), 'UMLMessage' (sequence), 'UMLGeneralization', 'UMLDependency'. tailViewId is the source, headViewId is the target. Use view IDs from create_element_with_view results. Requires staruml-mcp-extension to be installed in StarUML. Install from https://github.com/ezrabrilliant/staruml-mcp-extension
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Edge tail X coordinate (required for SeqMessage vertical positioning) | |
| y | No | Edge tail Y coordinate (REQUIRED for UMLMessage in sequence diagrams — determines vertical position of the message; without this, all messages stack at same y) | |
| x2 | No | Edge head X coordinate | |
| y2 | No | Edge head Y coordinate (defaults to y if omitted) | |
| name | No | Optional edge label | |
| type | Yes | Edge metamodel type: 'UMLAssociation', 'UMLControlFlow', 'UMLMessage', 'UMLGeneralization', 'UMLDependency' | |
| parentId | Yes | Owning model's _id | |
| diagramId | Yes | Diagram's _id | |
| headViewId | Yes | Target view _id (from create_element_with_view) | |
| tailViewId | Yes | Source view _id (from create_element_with_view) |