wait_for_messages
Long-poll for up to 60 seconds and return as soon as a new WhatsApp message arrives, optionally for one chat; timed_out=true means no message arrived.
Instructions
Long-poll up to 60 s: return as soon as a new message arrives (optionally in one chat). timed_out=true when nothing arrived.
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": "wait_for_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | Only wake for this chat (number or JID). | |
| timeout_s | No | How long to wait, in seconds (1-60). |