analyze_whatsapp_chat_messages
WhatsApp chat message analysis tool. Supports delivery-status lookups and chat export. The 'device' parameter accepts a device ID (24-hex), phone number (E.164), or alias — auto-selected if the account has a single device; otherwise the tool errors with the list of available devices so you can ask the user.
Available actions:
delivery_status: Check delivery and read receipts for specific outbound messages (≤30 days old)
export: Export chat messages in JSON, CSV, or TXT format
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | WhatsApp chat ID (required for export) | |
| action | Yes | Action to perform for WhatsApp message analysis operations | |
| device | No | Target WhatsApp device — accepts device ID (24-hex), phone number in E.164 format, or device alias. Optional: if the account has a single device, it is auto-selected; otherwise specify which one. | |
| format | No | Export format | json |
| toDate | No | Export period end date | |
| fromDate | No | Export period start date | |
| messageIds | No | Message IDs to check status for (required for delivery_status, max 20) | |
| maxMessages | No | Maximum messages to export (paginated under the hood) | |
| includeMedia | No | Include media file information in export | |
| includeMetadata | No | Include full message metadata in export |