decrypt_attachment
Decrypt a locally stored Signal attachment using its metadata key and return the absolute path to the decrypted file. Use after reading messages with attachments.
Instructions
Decrypt a locally stored Signal attachment and return the path to the decrypted file.
The encrypted_path and local_key values come from attachment metadata in read_messages or search_messages results. Read-only on Signal data; writes a decrypted copy to a temporary directory (the temp file is not auto-cleaned). Returns the absolute path to the decrypted file as a string on success, or a string starting with 'Error:' on failure (missing file, wrong key length, or HMAC mismatch). Use this after reading messages that contain attachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_key | Yes | Base64-encoded 64-byte key (32-byte AES-CBC + 32-byte HMAC-SHA256), from the 'local_key' field of attachment metadata. | |
| encrypted_path | Yes | Absolute filesystem path to the encrypted attachment file, as returned in the 'encrypted_path' field of message attachment metadata. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |