create_template
Create and manage diagram templates: build, save, list, delete, and apply customizable templates for consistent diagramming workflows.
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": {
"action": "<action>"
},
"name": "create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 模板操作类型 | |
| diagram_id | No | 源图表ID(用于save操作) | |
| template_id | No | 模板ID(用于save, delete, apply操作) | |
| apply_params | No | 应用模板时的参数值 | |
| template_data | No | 模板数据 |