screenshot_diagram
Capture a PNG screenshot of the current draw.io diagram to analyze its visual layout, styling, and readability using a vision-capable model.
Instructions
Capture a screenshot (PNG image) of the current draw.io diagram as it appears in the editor. Returns the image so a vision-capable model can analyze the visual layout, styling, and readability. Requires the diagram to be open in VS Code with the companion extension connected.
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": "screenshot_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Export scale factor (default: 1). Use 2 for higher resolution. | |
| border | No | Border padding in pixels around the diagram (default: 10) | |
| filePath | Yes | Path to the .drawio file (must be open in VS Code) |