apidog_import_spec
Import OpenAPI 3.x specs into Apidog to update or replace API documentation. Merge with existing specs for bulk updates, with options to control overwrites.
Instructions
Import a full or partial OpenAPI spec. If mergeWithExisting is true (default), exports current spec first and merges. Use for bulk updates or importing from external sources like Scramble.
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": "apidog_import_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | OpenAPI 3.x spec object | |
| mergeWithExisting | No | Merge with current spec (true) or replace (false) | |
| overwriteBehavior | No | OVERWRITE_EXISTING |