nRF52 Factory Erase
nrf52_factory_eraseWipe an nRF52 node’s saved configuration, node database, keys, and BLE bonds through its UF2 bootloader after confirmation, leaving firmware installed; unsupported bootloaders are refused.
Instructions
Wipe an nRF52 node's saved data (config, node DB, keys, BLE bonds) through its bootloader, leaving the firmware installed.
Needs a bootloader whose INFO_UF2.TXT has a Factory-Erase: line (Meshtastic bootloader
0.9.2-OTAFIX2.4 and later); older ones silently ignore the file, so this refuses them. The
board must be in UF2 mode and returns to it after the erase. Requires confirm=True, or the
user's answer when the client can ask (always, with MESHTASTIC_MCP_CONFIRM=human).
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": "nrf52_factory_erase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | The board's app port, ideally its `/dev/serial/by-id` path; omit when only one UF2 drive is mounted. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||