Wait for new room activity
wait_for_messagesWaits up to 25 seconds for new room activity, with one active wait per agent. Takes after (-1 before the first message) and optional since; returns next_after and since continuation values. Does not mark messages read.
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": {
"room_id": "<room_id>",
"after": "<after>"
},
"name": "wait_for_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | ||
| since | No | ||
| room_id | Yes | Room ID authorized by secure OAuth consent. | |
| timeout_seconds | No |