Load Swagger/OpenAPI Spec
swagger_load_specLoad and parse Swagger 2.0 or OpenAPI 3.x specs from a URL. Supports JSON and YAML formats, caching locally for use by other tools.
Instructions
Load and parse a Swagger 2.0 or OpenAPI 3.x specification from a URL. Supports both JSON and YAML formats. The loaded spec is parsed, cached to local JSON files, and used by all subsequent tools. Must be called first before using other tools (unless SWAGGER_URL env var is set).
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": "swagger_load_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the Swagger/OpenAPI spec (JSON or YAML) | |
| headers | No | Optional HTTP headers for fetching the spec (e.g. authorization) |