flash
Compile and upload the current MakeCode program to a connected micro:bit over USB, replacing the board's existing program; compile errors are returned instead of uploading.
Instructions
Compile the program and flash it onto the connected micro:bit (replaces the program on the board). Connects first if needed (see connect_device). Returns compile errors instead of flashing when there are any.
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": "flash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||