Create Bruno Collection
create_collectionCreate and configure a new Bruno API testing collection, then register it in the workspace so it is visible to collection tools and the Bruno app.
Instructions
Create a new Bruno API testing collection with configuration. outputPath is the PARENT directory and name is appended to it: outputPath "/work/apis" with name "Billing" creates the collection at /work/apis/Billing. Do not put the collection name in outputPath as well. The new collection is also added to the workspace registry that list_collections reads rather than the disk, so a collection missing from it is invisible to that tool and to the Bruno app. The result says whether it was registered and, if not, why.
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": {
"name": "<name>",
"outputPath": "<outputPath>"
},
"name": "create_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| format | No | yaml | |
| ignore | No | ||
| baseUrl | No | ||
| outputPath | Yes | Absolute path of the PARENT directory to create the collection directory in. name is appended: "/work/apis" with name "Billing" creates /work/apis/Billing, and passing "/work/apis/Billing" here would create /work/apis/Billing/Billing. | |
| description | No | ||
| workspacePath | No | Absolute path of the workspace.yml to register the new collection in. Defaults to the same one list_collections reads: BRUNO_WORKSPACE_PATH, or the Bruno app's workspace for this platform. | |
| registerInWorkspace | No | Set false to create the collection without touching any workspace file. It will not appear in list_collections until something else registers it. |