Set the Arduino code
tinkercad_set_codeReplaces the Arduino sketch code of the currently open Tinkercad circuit, letting you update program text for simulation and testing.
Instructions
Replaces the Arduino sketch of the open circuit (text code, not blocks).
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 |