ESPTool Erase Flash
esptool_erase_flashPerforms a full-chip ESP32 flash erase to recover devices stuck in an abnormal state; requires explicit confirmation and leaves the device unbootable until firmware is flashed.
Instructions
Full-chip erase via esptool erase_flash. Leaves the device unbootable.
Prefer erase_and_flash which also writes firmware. Use this only for recovery when a
device is in a weird state. Requires confirm=True, or the user's answer when the client
can ask (always, with MESHTASTIC_MCP_CONFIRM=human).
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": {
"port": "<port>"
},
"name": "esptool_erase_flash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The ESP32's serial port. | |
| confirm | No | `True` once the user agreed; omitted, a client that can ask prompts the human. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||