Make a link from code
create_code_linkMake a link that opens a sketch in the Mokxi editor, for code with no circuit worked out: Mokxi reads the sketch, picks the board when none is given and places and wires the parts the code names. Nothing is checked here, so prefer create_project when the wiring matters. Always give the person the link, whole and unchanged.
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": {
"code": "<code>"
},
"name": "create_code_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The whole sketch, 24 thousand characters at most. | |
| board | No | The board to open it on, such as "uno", "esp32" or "pico". Left out, Mokxi picks one from the code. |