save_diagram
Save a diagram to a file in XML or JSON format by providing the diagram ID and filename. This enables exporting and sharing diagrams externally.
Instructions
保存图表到文件
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": {
"diagram_id": "<diagram_id>",
"filename": "<filename>"
},
"name": "save_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 文件格式 | xml |
| filename | Yes | 文件名 | |
| diagram_id | Yes | 图表ID |