wait_for_message
Pause execution until a new agent message arrives, optionally filtered by thread or sender, or until timeout, so you can receive a reply before continuing.
Instructions
Block until a new message arrives for this agent (optionally only in one thread or from one agent), or until the timeout. Use after sending a request when you need the answer before continuing. Keep timeout_seconds under your client's tool timeout and call again to keep waiting.
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 |
|---|---|---|---|
| thread_id | No | Only wake for messages in this thread | |
| from_agent | No | Only wake for messages from this agent | |
| timeout_seconds | No |