gadgets_get_state
Retrieve a gadget's last reported state and its freshness (fresh, stale, or offline) to check device status before routing commands. Accepts a device ID or its given name.
Instructions
Read a gadget's last reported state and freshness (fresh, stale or offline). Reported state is the device's own report; it does not prove a physical effect. device_id may be the gadget's ID or the name you gave it.
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>"
},
"name": "gadgets_get_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes |