parseApiEndpoint
Parses a single Swagger/OpenAPI endpoint by URL, path, and method to generate a JSON Schema-based Chinese prompt for documenting that API.
Instructions
解析 Swagger/OpenAPI 文档中的单个接口,生成 JSON Schema 格式的中文提示词
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": {
"url": "<url>",
"path": "<path>",
"method": "<method>"
},
"name": "parseApiEndpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Swagger/OpenAPI 文档的 URL 地址 | |
| path | Yes | API 接口路径(如:/pet/{petId}) | |
| method | Yes | HTTP 方法(小写) | |
| headers | No | 可选的请求头(如需要认证时) | |
| timeout | No | 请求超时时间(毫秒,默认 30000) |