vault_list
Lists secrets stored at a specified path in HashiCorp Vault to view available secret data.
Instructions
List secrets at the specified path in Vault
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": {
"path": "<path>"
},
"name": "vault_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to list secrets from (e.g., 'secret/metadata') |
Implementation Reference
- src/index.ts:146-157 (handler)Handler logic for the 'vault_list' tool within the CallToolRequestSchema handler. It extracts the 'path' argument, calls vaultClient.list(path), and returns the result data as a JSON-formatted text content block.
case "vault_list": { const { path } = args as { path: string }; const result = await vaultClient.list(path); return { content: [ { type: "text", text: JSON.stringify(result.data, null, 2), }, ], }; } - src/index.ts:63-76 (registration)Registration of the 'vault_list' tool in the TOOLS array, which is returned by ListToolsRequestHandler. Includes name, description, and inputSchema.
{ name: "vault_list", description: "List secrets at the specified path in Vault", inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to list secrets from (e.g., 'secret/metadata')", }, }, required: ["path"], }, }, - src/index.ts:66-75 (schema)Input schema for the 'vault_list' tool, defining a required 'path' string property.
inputSchema: { type: "object", properties: { path: { type: "string", description: "The path to list secrets from (e.g., 'secret/metadata')", }, }, required: ["path"], },