Get Attachment
keychain_get_attachmentDownload a parent item's attachment as raw bytes in contentBase64, including filename and byte count. Pass itemId and attachmentId, or an unambiguous filename selector, to decode the file locally.
Instructions
Download an attachment from a parent item and return raw bytes as contentBase64. NOREVEAL blocks downloads. 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.
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": {
"itemId": "<itemId>",
"attachmentId": "<attachmentId>"
},
"name": "keychain_get_attachment"
}
}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. |