downloadSwaggerJson
Download Swagger/OpenAPI JSON to a local file with optional username/password authentication and custom headers, so you can retrieve and store protected API schemas.
Instructions
下载 Swagger/OpenAPI JSON 文档到本地文件,支持用户名密码认证
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>"
},
"name": "downloadSwaggerJson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Swagger/OpenAPI 文档的 URL 地址 | |
| headers | No | 额外的请求头(可选) | |
| timeout | No | 请求超时时间(毫秒,默认 30000) | |
| password | No | 用于认证的密码(可选) | |
| savePath | No | 保存文件的路径(可选,不提供则自动生成文件名) | |
| username | No | 用于认证的用户名(可选) |