mqtt_subscribe
Subscribe to an MQTT topic to start receiving messages. Use + and # wildcards for single-level and multi-level topic filters.
Instructions
Subscribe to an MQTT topic to start receiving messages. Supports MQTT wildcards: '+' for single level, '#' for multi-level.
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": {
"topic": "<topic>"
},
"name": "mqtt_subscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qos | No | Quality of Service level (0, 1, or 2). Default is 0. | |
| topic | Yes | The MQTT topic to subscribe to (e.g., 'sensors/temperature' or 'sensors/+/status') |