get_new_messages
Retrieve WhatsApp messages at or after a Unix timestamp, oldest first, for cursor-style polling; optionally filter by chat and cap results.
Instructions
Messages at or after a timestamp (seconds), oldest first — cursor-style polling.
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": {
"since_ts": "<since_ts>"
},
"name": "get_new_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Restrict to one chat (number or JID). | |
| limit | No | Max messages (1-200). | |
| since_ts | Yes | Unix timestamp in seconds; 0 returns the cached window. |