shelly_virtual_add
Adds a virtual component (boolean, number, text, enum, button, or group) to a Shelly device, with optional config and ID, returning the new component ID.
Instructions
Add a virtual component of type (boolean/number/text/enum/button/group).
Optional config and id (200-299). Returns the new component id. Audit-logged.
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": "<device>",
"type": "<type>"
},
"name": "shelly_virtual_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| type | Yes | ||
| config | No | ||
| device | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||