openwisp_execute_device_command
Execute reboot or custom shell commands on OpenWISP-managed devices to remotely control network hardware through the REST API.
Instructions
[Category: Devices & Controller] Execute a command on a device, such as reboot or a custom shell command. (HTTP POST /api/v1/controller/device/{device_id}/command/)
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>",
"type": "<type>"
},
"name": "openwisp_execute_device_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Command type | |
| command | No | Custom command when type is custom | |
| device_id | Yes | Device UUID or ID |