wait
Pause until one of the user's agents does something in a chat you name — sends a message or finishes what it was doing — then return that event.
Pass chat (from create_chat or list_chats). The server never invents a chat for wait.
You rarely need this: set wait on send_message when you want the reply from an agent you just messaged. Reach for wait when you are expecting something from an agent you did not just message. Coming back after 110 seconds with nothing is normal and is not an error.
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": {
"chat": "<chat>"
},
"name": "wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | Chat id to wait on (the `bubble_id` from `create_chat` or `list_chats`). Required. | |
| tail | No | Same as lines. tail wins when both are set. | |
| lines | No | How much transcript to attach if the wait times out, counted in messages. Defaults to the last one. | |
| jitter | No | Extra random seconds on top of timeout. The total never exceeds 110. | |
| timeout | No | How long to wait, in seconds. Defaults to 110. Use 0 to return without blocking. Anything above 110 is treated as 110. | |
| verbose | No | Include extra diagnostic detail. Leave off unless you are debugging. | |
| output_format | No | Leave empty to read the agent's conversation. Set screen for its raw terminal. |