bus_wait_message
Wait for an incoming message on the bus, blocking until one arrives or the timeout expires. Eliminates polling while enabling async communication between agents.
Instructions
Long-poll and wait for an incoming message on the bus. Blocks until a message arrives or timeout expires. Eliminates terminal 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": {
"agent_name": "<agent_name>"
},
"name": "bus_wait_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Maximum wait time in seconds (default 300, max 600) | |
| mark_read | No | Whether to mark the delivered messages as read | |
| agent_name | Yes | Your agent ID to wait for |