Generate spec from collection
generateSpecFromCollectionGenerate an OpenAPI 2.0, 3.0, or 3.1 specification from a Postman collection. Returns a polling link to track task completion.
Instructions
Generates an OpenAPI 2.0, 3.0, or 3.1 specification for the given collection. The response contains a polling link to the task status.
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": {
"collectionUid": "<collectionUid>",
"elementType": "<elementType>",
"name": "<name>",
"type": "<type>",
"format": "<format>"
},
"name": "generateSpecFromCollection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The API specification's name. | |
| type | Yes | The specification's type. | |
| format | Yes | The format of the API specification. | |
| elementType | Yes | The `spec` value. | |
| collectionUid | Yes | The collection's unique ID. |