Write Arduino code
tinkercad_set_codeReplace the entire Text-mode Arduino sketch with a complete program containing setup() and loop(), updating the Tinkercad circuit's code.
Instructions
Replace the entire Text-mode Arduino sketch.
Args:
code (string): Full sketch, including setup() and loop()
Switching from Blocks to Text is done automatically when the dropdown is present.
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": "tinkercad_set_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Full Arduino sketch to write into the Text code panel |