Import requests
import_requestsImport OpenAPI, Postman, Insomnia, Bruno, HAR, .http or curl requests into a Gostman workspace without altering existing requests. Use it to add API requests in bulk from other tools.
Instructions
Add requests to the workspace from an OpenAPI or Swagger spec, a Postman, Insomnia or Bruno collection, a HAR file, .http requests or a curl command. Nothing existing is changed: the collection settings of a Gostman export are adopted only when the workspace has none. Scripts and OAuth 2.0 settings are removed (listed in leftOut; warnings describe the source document), and an import that holds a credential, reads local files or runs local commands is refused. Returns what was added.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_requests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Fetch the document from this address instead of giving content. Only hosts this session may call are reached. | |
| folder | No | Put everything in this folder path, such as imported/petstore. Missing folders are created. Leave out to import at the top level. | |
| format | No | Defaults to auto, detected from the content. | |
| content | No | The document to import: an OpenAPI or Swagger spec, a Postman, Insomnia or Bruno collection, a HAR file, .http requests or a curl command. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| folder | No | ||
| folders | No | ||
| leftOut | No | ||
| skipped | No | ||
| sources | No | ||
| requests | No | ||
| warnings | No | ||
| variables | No | ||
| environments | No | ||
| moreRequests | No | ||
| collectionSettings | No | ||
| collectionVariables | No |