import_mocks
Import mock definitions from various formats including OpenAPI, Postman, HAR, WireMock, cURL, and mockd formats. Automatically detects formats and allows previewing imports before applying them to your mock server.
Instructions
Import mocks from inline content. Supports OpenAPI, Postman, HAR, WireMock, cURL, and mockd YAML/JSON formats. Format is auto-detected if not specified. Use dryRun=true to preview without applying.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Mock definition content (YAML, JSON, OpenAPI spec, Postman collection, HAR, WireMock, or cURL) | |
| dryRun | No | Parse and validate without applying. Returns a summary of what would be imported. | |
| format | No | Format hint for parsing | auto |
| replace | No | Replace all existing mocks (true) or merge with existing (false) |