connect_device
Connects a micro:bit over USB through MakeCode’s WebUSB pairing dialog; select it once in the browser chooser, then reuse the connection for later runs.
Instructions
Connect a micro:bit over USB (WebUSB) through MakeCode's pairing dialog. The first time, the user must select the micro:bit in the browser's chooser; later connects reuse it.
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": "connect_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeoutSeconds | No | How long to wait for the connection (default 60) |