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.
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_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | max messages to return (default 20) | |
| timeout_s | No | seconds to wait (0-600) |