Read messages
get_messagesRead messages from a WhatsApp chat export in order, filtered by date range or sender; each line is indexed for exact citations and supports offset/limit paging.
Instructions
Return messages in order, optionally between two dates and from one sender. Each line starts with #index so answers can cite the exact message. Page with offset and limit.
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": {
"path": "<path>"
},
"name": "get_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the WhatsApp export: the .zip from Export chat, or the .txt | |
| limit | No | Default 200 | |
| offset | No | ||
| sender | No | Only messages from this person (partial name, case and accents ignored) | |
| to_date | No | Last day to include, YYYY-MM-DD | |
| from_date | No | First day to include, YYYY-MM-DD | |
| date_order | No | Date order of the export. Leave as auto unless open_export reported a guess that looks wrong |