list_whatsapp_messages
WhatsApp messages of the tenant's own Twilio sender, AS TWILIO SEES THEM — inbound and outbound, newest first, with delivery status and error code in plain words. This is where a customer's reply shows up even before connect_whatsapp_inbound is set, and where 'sent' turns out to be 'undelivered'. Optional: direction (inbound | outbound | both, default both), number (only the conversation with this E.164 number), since (ISO date), limit (default 20, max 100), include_body (default true). Read-only; twilio_direct tenants. WITH lead_id or contact_id instead: the WhatsApp history of that record from CallPilotAI's own timeline - every route (Beeper, Twilio, AI-Call-Bot), no bridge tool and no Twilio needed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_whatsapp_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of entries to return | |
| since | No | Only entries from this point in time on (ISO 8601) | |
| number | No | E.164, e.g. +491701234567 | |
| lead_id | No | History of this lead (timeline), any WhatsApp route. | |
| direction | No | Only inbound, outbound or both (default both) | |
| contact_id | No | History of this contact (timeline), any WhatsApp route. | |
| include_body | No | Also include body |