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.
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 |