mailbox_wait
Wait for incoming messages in an agent's mailbox, blocking until a new message arrives or the timeout expires. Returns immediately if messages are already pending, eliminating the need for polling.
Instructions
Block until a new message arrives (long-poll, up to timeout). Returns immediately if pending messages exist. Import 'time' is at module top.
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": "mailbox_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | ||
| timeout_seconds | No |