import_from_openapi
Generate Insomnia requests and collections from OpenAPI/Swagger files. Provide file path, set base URL or collection name to customize.
Instructions
Generate requests from OpenAPI/Swagger specification
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": {
"filePath": "<filePath>"
},
"name": "import_from_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baseUrl | No | Base URL to use for requests (overrides spec servers) | |
| filePath | Yes | Path to OpenAPI spec file (JSON or YAML) | |
| collectionName | No | Name for the new collection |