Install firmware on a bootloader-mode board
pico_installInstalls MicroPython on a Pico in BOOTSEL mode or supported ESP32 in DOWNLOAD mode, checking compatibility first and requiring explicit confirmation before writing firmware.
Instructions
Install MicroPython on a Pico in BOOTSEL mode or a supported ESP32 in DOWNLOAD mode. Always call action check first. A Pico may require mounting and a Wi-Fi model choice. An ESP32 uses the detected chip-specific generic build. Obtain explicit confirmation before calling action install.
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": {
"board_id": "<board_id>",
"action": "<action>",
"firmware": "<firmware>"
},
"name": "pico_install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wifi | No | Whether a Pico is a W model with Wi-Fi. Required only for Pico installation. | |
| action | Yes | ||
| board_id | Yes | Stable board UID returned by pico_boards_list, or its current serial device path. | |
| firmware | Yes | ||
| confirmed | No | Must be true after the user explicitly confirms installation. | |
| initialize_storage | No | Erase and initialize ESP32 filesystem storage during installation. Defaults to true for ESP32. |