refresh_diagram
Regenerate infrastructure diagrams by providing updated Python code using the diagrams DSL.
Instructions
Regenerate a diagram from updated code (app-only tool).
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": {
"code": "<code>"
},
"name": "refresh_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Python code using the diagrams package DSL to regenerate a diagram. | |
| filename | No | Optional output filename for the generated diagram (without extension). | |
| timeout | No | Timeout in seconds for diagram generation (1-300). | |
| workspace_dir | No | Optional workspace directory for output files. |