generate_diagram
Transform natural language descriptions into detailed draw.io architecture diagrams or HTML files, aiding in visualizing system components, services, databases, and tech stacks with precision.
Instructions
根据用户的描述,结合专业提示词模板,生成详细的draw.io架构图或对应的HTML文件
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | Yes | 系统架构描述,包括组件、服务、数据库、技术栈等详细信息 | |
diagram_name | No | 架构图名称 | 系统架构图 |
file_type | Yes | 生成的文件保存的格式 | |
output_file | Yes | 用于保存生成架构图的文件路径,请注意macos与windows都不应该放在根目录 | |
prompt_id | Yes | 要生成的图表类型ID。可以通过 list_support_diagram_types 工具获取可用ID。 |
Input Schema (JSON Schema)
{
"properties": {
"description": {
"description": "系统架构描述,包括组件、服务、数据库、技术栈等详细信息",
"type": "string"
},
"diagram_name": {
"default": "系统架构图",
"description": "架构图名称",
"type": "string"
},
"file_type": {
"description": "生成的文件保存的格式",
"type": "string"
},
"output_file": {
"description": "用于保存生成架构图的文件路径,请注意macos与windows都不应该放在根目录",
"type": "string"
},
"prompt_id": {
"description": "要生成的图表类型ID。可以通过 list_support_diagram_types 工具获取可用ID。",
"type": "string"
}
},
"required": [
"prompt_id",
"file_type",
"description",
"output_file"
],
"type": "object"
}