read_flash
Reads target flash memory over the Bit-Pirate UART bridge via esptool, optionally enters download mode, and saves the dump to a file for firmware analysis.
Instructions
Read flash memory from target via esptool through the Bit-Pirate UART bridge. Optionally enters download mode first. Requires esptool installed. [allowed-write] [Duration: very-slow (~3-5 min for 1-2 MiB at 460800 baud; larger images proportionally longer). Background-dispatch required. Bridge mode persists after dump -- press the Bit-Pirate button or USB-replug to exit.]
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": {
"size": "<size>",
"output_path": "<output_path>"
},
"name": "read_flash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baud | No | Baud rate for flash read (115200 or 460800 recommended) | |
| size | Yes | Number of bytes to read (e.g., 0x400000 for 4MB) | |
| offset | No | Flash offset to start reading from | |
| boot_pin | No | ESP32 GPIO for boot select (-1 to skip download mode entry) | |
| reset_pin | No | ESP32 GPIO for reset (-1 to skip download mode entry) | |
| output_path | Yes | Path to save the flash dump |