Get device commands
hubitat_get_device_commandsRetrieve all available commands for a Hubitat device via the Maker API. Use this before sending a command to verify the exact command name exists, avoiding guesswork and failed actions.
Instructions
List commands available for a device via Maker API. Prefer this over guessing command names.
Use when: before hubitat_send_command to confirm the command exists. Do NOT use when: sending a known simple Switch on/off.
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": "hubitat_get_device_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_id | Yes | Maker API device ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes | ||
| device_id | Yes |