keychain_get_password_history
Retrieve password history for a vault item to track changes over time. Use reveal parameter to view actual passwords when needed.
Instructions
Get an item password history (if any). Returning passwords requires reveal=true.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| reveal | No |
Implementation Reference
- src/tools/registerTools.ts:1213-1239 (handler)Registration of the "keychain_get_password_history" tool and its handler function.
`${deps.toolPrefix}.get_password_history`, { title: 'Get Password History', description: 'Get an item password history (if any). Returning passwords requires reveal=true.', annotations: { readOnlyHint: true }, inputSchema: { id: z.string(), reveal: z.boolean().optional(), }, _meta: toolMeta, }, async (input, extra) => { const sdk = await deps.getSdk(extra.authInfo); const history = await sdk.getPasswordHistory(input.id, { reveal: effectiveReveal(input), }); return { structuredContent: toolResult( 'password_history', history.value, history.revealed, ), content: [{ type: 'text', text: 'OK' }], }; }, );