Act on a PitCanary
manage_devicePerforms one action on a sensor: rename it, take it out of its room, remove it from this account, make it flash so it can be found on a wall, or restart it. Unpairing and removing from the account take two calls: the first changes nothing and returns what will happen with a confirm token, and the second, with the same arguments and that token, does it. Removing a sensor from the account is kept for the account owner or an admin signed in to the dashboard, so through an API key that action is refused. Wiping a device is a separate tool. Requires a PitCanary account.
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>",
"action": "<action>"
},
"name": "manage_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The new name, when renaming. | |
| action | Yes | rename needs a name. unpair takes it out of its room and keeps the history. release removes it from this account; it gets a new pairing code and has to be claimed again. identify makes it flash so it can be found. reboot restarts it. unpair and release take a confirm token. | |
| confirm | No | Leave this out on the first call. That call changes nothing and returns a sentence saying what will happen plus a confirm token. Pass the token here, unchanged and with the same other arguments, only after the person has said yes to that sentence. | |
| device_id | Yes | The PitCanary id, as returned by list_devices, or active_device_id in list_rooms. |