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.
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": {
"chatId": "<chatId>",
"id": "<id>",
"approved": "<approved>"
},
"name": "get_attachment"
}
}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. |