list_devices
List Xiaomi smart home devices filtered by home, room, name substring, or online status. Returns device name, did, model, online status, and assigned home/room.
Instructions
列出设备(名称/did/model/在线状态/所属家庭房间),支持过滤。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_devices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| home | No | 按家庭名称或ID过滤;不传用服务端默认家庭。 | |
| room | No | 按房间名过滤(精确匹配)。 | |
| online_only | No | 只看在线设备。 | |
| name_contains | No | 设备名包含该子串(不区分大小写)。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |