publish_message
Send a message to a RabbitMQ exchange, specifying routing key and message content.
Instructions
向交换机发布消息
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": {
"routing_key": "<routing_key>",
"message": "<message>"
},
"name": "publish_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vhost | No | 虚拟主机名称 (默认: /) | / |
| message | Yes | 消息内容 | |
| exchange | No | 交换机名称 (留空使用默认交换机) | |
| routing_key | Yes | 路由键 | |
| content_type | No | 内容类型 (默认: application/json) | application/json |