import_openapi
Parses OpenAPI 3.x or Swagger 2.x specs (JSON/YAML) to create an Insomnia workspace with endpoints as requests grouped by tag, plus an optional base environment.
Instructions
Parse an OpenAPI 3.x or Swagger 2.x spec (JSON or YAML string) and create a workspace with all endpoints as Insomnia requests, grouped by tag into folders.
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": {
"spec": "<spec>"
},
"name": "import_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | Full OpenAPI/Swagger spec as a JSON or YAML string | |
| create_environment | No | Automatically create a base environment with the server base_url |