toggle_outlet
Turns an IKEA TRÅDFRI smart plug on or off by flipping its current state, then reports the new state. Provide the outlet ID from list_outlets.
Instructions
Flip an outlet to the opposite of its current state and return the new state.
Args: outlet_id: The outlet's id, as returned by list_outlets.
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": {
"outlet_id": "<outlet_id>"
},
"name": "toggle_outlet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outlet_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||