Wait for messages
wait_for_messagesWhile your user is in the chat waiting for an answer: wait up to wait_seconds (max 50) for a new message in any conversation. Pass the returned cursor_seq as since_seq next time: messages are numbered without gaps, so none is missed. Call it again, without ending your turn, while live.keep_waiting is true (the other side is online or waiting for you); stop when it is false. (since: old time cursor, still accepted.)
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_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ||
| since_seq | No | ||
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||