word_add_diagram
Add Mermaid flowcharts or architecture diagrams to Word documents by converting Mermaid code into an embedded image. Requires document ID and Mermaid code; optional theme, width, and caption.
Instructions
添加 Mermaid 流程图/架构图(自动转换为图片插入)
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": {
"docId": "<docId>",
"mermaid": "<mermaid>"
},
"name": "word_add_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | 文档ID | |
| theme | No | 图表风格 | |
| width | No | 图片宽度(厘米),默认15 | |
| caption | No | 图表标题(可选) | |
| mermaid | Yes | Mermaid 图表代码 |