List KV keys
vault_kv_listList secret keys and sub-folders under a specified path in a Vault KV secrets engine. Provide mount point and optional path to navigate the hierarchy.
Instructions
List the secret keys/sub-folders under a path. Keys ending in '/' are sub-folders. Use path '' or '/' to list the root of the mount.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mount | Yes | Mount point of the KV secrets engine, without leading/trailing slashes (e.g. 'secret', 'kv', 'apps/prod'). | |
| path | No | Folder path to list within the mount. Omit or use '' to list the mount root. | |
| kv_version | No | KV engine version: 1 or 2. If omitted, the server auto-detects it from the mount (falling back to 2). Set explicitly to avoid an extra detection call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Secret names and sub-folders (sub-folders end with '/'). | |
| kv_version | Yes |