Wait for a message
waitBlocks until a new unread message arrives or the timeout elapses (default 30s, max 600s), letting agents pause mid-task for a reply.
Instructions
Block until a new unread message arrives (polling), or the timeout elapses. Default 30 seconds, maximum 600. Use only when you need to wait for a reply mid-task.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| with | No | Only return messages from this session id/label/prefix/tool. | |
| timeout_seconds | No | Max seconds to wait. Defaults to 30, capped at 600. |