Import requests into the workspace
import_requestsImports OpenAPI specs, cURL commands, or API client exports into a new workspace collection, converting literal credentials to {{variables}} and leaving existing collections unchanged.
Instructions
Imports an OpenAPI spec (JSON or YAML; path or URL such as http://localhost:3000/openapi.json), a cURL command, or a Postman, Insomnia, Bruno, Thunder Client, Hoppscotch or SignOff export into a new collection in the workspace, using the app's own import pipeline. Literal credentials become {{variables}} so nothing secret is written. Existing collections are never changed.
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 | URL to download, e.g. a running service's /openapi.json | |
| name | No | Name for the new collection (default: from the source) | |
| path | No | File path (relative paths are inside the workspace) | |
| text | No | Inline content, e.g. a cURL command | |
| environments | No | Also create the source's environments (default true; secrets stay blank) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| warnings | Yes | ||
| collections | Yes | ||
| environments | Yes | ||
| variablesForSecrets | Yes | Variables that replaced literal credentials; their values belong in .env |