Create Bruno Environment
create_environmentCreates an environment file for a Bruno collection and refuses existing names to prevent overwrites; set overwrite to true only when replacement is intended.
Instructions
Create an environment file for a Bruno collection. Writes the WHOLE file, so it REFUSES a name that already exists rather than overwriting it — the error names the existing variables and which ones a replace would delete, so you can merge with update_environment, pick another name, or retry with overwrite: true.
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": {
"collectionPath": "<collectionPath>",
"name": "<name>",
"variables": "<variables>"
},
"name": "create_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| overwrite | No | Replace an environment that already exists. Without this an existing name is refused. Keys in the file that this tool does not model are preserved either way. | |
| variables | Yes | Either a flat name-to-value map, or a list of variable objects when you need flags. Use the list form to declare a secret at create time: a secret variable is stored as a name only (no format persists a secret's value), so `value` is dropped for it. | |
| collectionPath | Yes | Absolute path to existing collection directory. |