createSpecFile
Generate API spec files in Postman by providing the spec ID, file path (supports folder creation with '/'), and stringified content. Files are assigned DEFAULT type and limited to 10MB.
Instructions
Creates an API spec file. Use '/' in path to create folders. File assigned DEFAULT type. Max size 10MB.
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": {
"specId": "<specId>",
"content": "<content>",
"path": "<path>"
},
"name": "createSpecFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specId | Yes | Spec ID | |
| content | Yes | File's stringified contents | |
| path | Yes | File path (JSON or YAML) |