publish
Publish a message to a Redis channel to enable real-time communication between applications.
Instructions
Publish a message to a Redis channel.
Args: channel: The Redis channel to publish to. message: The message to send.
Returns: A success message or an error message.
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": {
"channel": "<channel>",
"message": "<message>"
},
"name": "publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| message | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |