send_command
Send commands to IoT devices to trigger actions like turning on a relay or blinking an LED. Provide device ID and action, with optional parameters for timed control.
Instructions
Send a command to a device (e.g. turn on a relay, blink an LED, set a value).
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": {
"device_id": "<device_id>",
"action": "<action>"
},
"name": "send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Command action (e.g. relay.on, relay.off, led.on, led.off, led.blink, led.toggle) | |
| params | No | Optional parameters (e.g. {"duration": 5000} for timed relay) | |
| device_id | Yes | Device ID |