Convert an API description
convert_api_specConvert between API description formats: OpenAPI 3, Swagger 2.0, a Postman collection, cURL commands or a HAR recording in; OpenAPI 3.1 (JSON or YAML), Swagger 2.0, a Postman collection v2.1, cURL commands or an .http file out. Anything the target format can't hold is listed.
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": {
"source": "<source>",
"to": "<to>"
},
"name": "convert_api_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| source | Yes | The API description: OpenAPI or Swagger (JSON or YAML), a Postman collection, cURL commands or a HAR file. |