generate-openapi
Generates OpenAPI 3.0 specification documents from Java, JavaScript, or TypeScript API code by converting route information into structured API documentation.
Instructions
生成OpenAPI规范文档
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>",
"language": "<language>"
},
"name": "generate-openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | API代码内容 | |
| language | Yes | 编程语言 |