Wipe a PitCanary
factory_reset_deviceErases a sensor's own settings, its calibration and its pairing, returning it to how it left the factory. It has to be set up again over its captive portal afterwards, including the wifi it joins. The measurements it already sent are kept. This cannot be undone from here. PitCanary keeps this for the account owner or an admin signed in to the dashboard: an API key is refused it whatever its access, so through this server the answer says where to do it rather than doing it. It takes 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. 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>"
},
"name": "factory_reset_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |