Delete Attachment
keychain_delete_attachmentRemove files from vault items to manage storage and maintain organized password management systems.
Instructions
Delete an attachment from an item. Returns the updated (redacted) item.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | ||
| attachmentId | Yes | ||
| reveal | No |
Implementation Reference
- src/tools/registerTools.ts:839-860 (handler)Implementation of the keychain_delete_attachment tool handler in src/tools/registerTools.ts.
`${deps.toolPrefix}.delete_attachment`, { title: 'Delete Attachment', description: 'Delete an attachment from an item. Returns the updated (redacted) item.', inputSchema: { itemId: z.string(), attachmentId: z.string(), reveal: z.boolean().optional(), }, _meta: toolMeta, }, async (input, extra) => { if (isReadOnly) return readonlyBlocked(); const sdk = await deps.getSdk(extra.authInfo); const item = await sdk.deleteAttachment(clampReveal(input)); return { structuredContent: { item }, content: [{ type: 'text', text: 'Deleted.' }], }; }, );