create-sequence-diagram
Create a C4-styled sequence diagram in an existing architecture project to show component interactions over time and generate PlantUML code automatically.
Instructions
Create a new C4-styled Sequence diagram within an existing architecture project.
C4-PlantUML offers limited sequence diagram support that allows reusing existing elements
and relationships as participants and calls in a time-sequenced interaction flow.
Note: For simplicity, this implementation does not support boundaries in sequence diagrams.
Benefits:
- Automatic PlantUML code generation
- Shows interactions between components over time
- Perfect for explaining complex flows to stakeholders
Required Input Fields:
- projectId: String (ID of the project to add this diagram to)
- title: String (The name of your sequence diagram)
Optional Input Fields:
- description: String (A brief explanation of what the diagram represents)
- showElementDescriptions: Boolean (Whether to show element descriptions in the diagram)
- showFootBoxes: Boolean (Whether to show foot boxes in the diagram)
- showIndex: Boolean (Whether to show message indices in the diagram)
The response will include unique IDs that you'll need for all subsequent operations,
and the diagram will be saved in your project's sequence/ directory.Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"title": "<title>"
},
"name": "create-sequence-diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title for the new diagram | |
| projectId | Yes | ID of the project to add this diagram to | |
| showIndex | No | Whether to show message indices in the diagram | |
| description | No | Optional description of what the diagram represents | |
| showFootBoxes | No | Whether to show foot boxes in the diagram | |
| showElementDescriptions | No | Whether to show element descriptions in the diagram |