create_diagram
Create a new blank draw.io diagram file that appears instantly in VS Code for immediate editing.
Instructions
Create a new empty draw.io diagram file. The file will be immediately visible in the VS Code draw.io extension.
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": {
"filePath": "<filePath>"
},
"name": "create_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path for the new .drawio file (relative or absolute) | |
| pageName | No | Name of the first page (default: "Page-1") |