receive_messages
Poll the Signal daemon once for new messages and save them locally. Use when the daemon is stuck or other retrieval methods fail.
Instructions
Poll the signal-cli daemon once for newly arrived messages and save them to the local store. Normally use get_unread instead — it polls when needed and returns unread messages in one call; use receive_direct only if the daemon is stuck. timeout: seconds to wait (integer, default 5); max_messages: stop after this many (default: no limit). Incoming edits and remote deletes are applied to stored messages instead of being returned; receipts are returned but not stored. Does not mark anything read. Returns a list of messages (id, sender, sender_name, recipient, group_id, group_name, body, timestamp, attachments, quote_id, reactions, is_read). If the background service already holds the receive lock, returns {note, messages} with up to 50 unread messages from the store instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Seconds to wait for messages (default: 5) | |
| max_messages | No | Return after this many messages (default: no limit) |