wait_for_message
Block until messages arrive for your session, then return them oldest first. Use when idle or expecting a reply; set timeout to 0 to check the inbox.
Instructions
Block until messages for this session arrive, then return them (oldest first). Use it when idle or when expecting a reply; it returns as soon as a message arrives. timeout_s=0 just checks the inbox.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | max messages to return (default 20) | |
| timeout_s | No | seconds to wait (0-600) |