loadSwagger
Load and parse OpenAPI/Swagger specification from URL or local file to extract endpoints, schemas, auth types, and base URL. Supports OpenAPI 2.0 and 3.x in JSON or YAML formats.
Instructions
Load and parse OpenAPI/Swagger spec from URL or local file. Returns structured summary: endpoints, schemas, auth types, base URL. Supports both OpenAPI 2.0 (Swagger) and 3.x, JSON and YAML formats. Use this first to understand an API before generating models or client code.
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": {
"source": "<source>"
},
"name": "loadSwagger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Spec format. 'auto' (default) detects from extension/content | |
| source | Yes | URL (http/https) or local file path to swagger.json / openapi.yaml |