add_extension
Add a built-in, GitHub, or search-term MakeCode extension to the open micro:bit project, then use its namespace with list_blocks to access new blocks.
Instructions
Add a MakeCode extension to the open project: a built-in one (servo, bluetooth, devices, datalogger...), a GitHub repo (owner/repo, e.g. microsoft/pxt-neopixel), or a search term (e.g. maqueen, cutebot). Then use list_blocks with its namespace.
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": {
"name": "<name>"
},
"name": "add_extension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Built-in extension name, GitHub owner/repo, or search term |