mqtt_subscribe
Subscribe to an MQTT topic for a specific device using device ID and topic name, with optional QoS level. Enables real-time IoT message reception.
Instructions
訂閱 MQTT 主題
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": {
"deviceId": "<deviceId>",
"topic": "<topic>"
},
"name": "mqtt_subscribe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qos | No | QoS 等級 (預設: 0) | |
| topic | Yes | 要訂閱的主題 | |
| deviceId | Yes | 裝置 ID |