run_action
Execute device actions such as starting a sweep or playing music. Specify device ID and action name to trigger commands on Xiaomi smart home.
Instructions
执行设备动作,例如扫地机开始清扫、播放音乐等。
Args:
did: 设备ID
action_name: 动作名称,如 start-sweep、stop-sweeping
value: 动作参数,可选
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": {
"did": "<did>",
"action_name": "<action_name>"
},
"name": "run_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did | Yes | ||
| action_name | Yes | ||
| value | No |