list-folders
Lists folders in an Infisical project environment and returns each folder's full path for use with secretPath. Set path and recursive options to target nested folders.
Instructions
List the folders in a project environment, each with the full path that secretPath takes.
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": "list-folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | The folder to list the folders of. Defaults to "/", the root | |
| projectId | Yes | The ID of the project, from list-projects. A project slug or exact project name also works. | |
| recursive | No | Also list every folder nested below path (Defaults to false) | |
| 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. |