Relay two bots
relay_conversationRun multi-turn conversations between two configured bots, forwarding each reply to the other until max turns or stop_relay is requested, so you can automate bot-to-bot dialogue.
Instructions
Run a multi-turn conversation between two configured bots. fromBot receives the opening message, then each reply is sent to the other bot. Stops at maxTurns (default 4, max 20) or when stop_relay is requested. The human can stop it between turns.
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": {
"fromBot": "<fromBot>",
"toBot": "<toBot>",
"message": "<message>"
},
"name": "relay_conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| toBot | Yes | ||
| fromBot | Yes | ||
| message | Yes | Opening message delivered to fromBot. | |
| maxTurns | No | How many bot replies to collect. Default 4. Maximum 20. | |
| threadId | No | ||
| timeoutMs | No | How long to wait for each reply. Default 20000. |