flash_firmware
Flash firmware onto an ESP32 by writing a local file to a serial port. Track progress, cancel operations, and optionally erase the chip with explicit confirmation.
Instructions
Write firmware_path to port.
Reports progress at least every 5% via MCP progress notifications and
can be cancelled mid-flash. erase=True wipes the whole flash first and
requires confirm_erase=True as a separate explicit argument.
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>",
"firmware_path": "<firmware_path>"
},
"name": "flash_firmware"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| erase | No | ||
| confirm_erase | No | ||
| firmware_path | Yes |