save_hex
Compile a MakeCode program and save its .hex file to a chosen path so you can copy it to the MICROBIT drive to flash the board or reopen it later with its source.
Instructions
Compile the program and save the .hex file on this computer. The file can be copied to the MICROBIT drive to flash it, and opened again with open_file (it contains the source).
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": {
"path": "<path>"
},
"name": "save_hex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Destination .hex path (relative to the server's working directory or absolute) |