create-folder
Create a folder in an Infisical project environment, including any missing parent folders, to organize secrets by path.
Instructions
Create a folder in a project environment. To create /backend/workers, pass path "/backend" and name "workers"; a missing parent folder such as /backend is created too.
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": {
"projectId": "<projectId>",
"environmentSlug": "<environmentSlug>",
"name": "<name>"
},
"name": "create-folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the new folder, without slashes. Letters, numbers, dashes and underscores | |
| path | No | The path of the parent folder to create it in. Defaults to "/", the root | |
| projectId | Yes | The ID of the project, from list-projects. A project slug or exact project name also works. | |
| description | No | A description of the folder | |
| environmentSlug | Yes | The slug of the environment, such as dev, staging or prod. list-projects shows each project's environments. An environment name such as Production also works. |