send-command
Execute commands on ESP8266/NodeMCU IoT devices by specifying the device ID and command (e.g., restart, update, status) via the NodeMCU MCP Service.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | The command to send (restart, update, status, etc.) | |
deviceId | Yes | The ID of the device to send the command to | |
params | No | Optional parameters for the command |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"command": {
"description": "The command to send (restart, update, status, etc.)",
"type": "string"
},
"deviceId": {
"description": "The ID of the device to send the command to",
"type": "string"
},
"params": {
"additionalProperties": {},
"description": "Optional parameters for the command",
"type": "object"
}
},
"required": [
"deviceId",
"command"
],
"type": "object"
}