Get Attachment
keychain_get_attachmentDownload an attachment from a Bitwarden vault item by providing the item ID and attachment ID or filename, returning the file data as base64-encoded content.
Instructions
Download an attachment from a parent item and return raw bytes as contentBase64. Pass itemId plus an attachment id, or an unambiguous filename selector resolved from the item metadata before calling bw get attachment. The response includes filename, byte count, and base64 content for local decoding. If the expected attachment filename is missing from keychain_get_item metadata, run keychain_sync and keychain_get_item again before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Parent Bitwarden item id for attachment or item-specific operations. | |
| attachmentId | Yes | Attachment id returned by item metadata, or an unambiguous filename selector for downloads. |