get_attachment
Return locally archived bytes for an approved attachment, providing the local file path or inline base64 data without contacting WhatsApp.
Instructions
Return an approved attachment's locally-archived bytes. Requires approved: true for the specific message (and passes the operator allowlist, if configured). Never fetches from WhatsApp — only surfaces bytes the collector already downloaded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| chatId | Yes | ||
| approved | Yes | Must be true to release the bytes — explicit per-message approval. | |
| includeBase64 | No | If true, include base64 bytes inline; otherwise return the local path only. |