create_sketch
Creates a sketch folder and matching .ino file with default or custom content, letting you save new Arduino sketches in the workspace or sketchbook for editing and compilation.
Instructions
Create a new sketch folder and matching .ino file.
Use location="sketchbook" so the sketch appears in Arduino IDE; the default writes inside the configured workspace.
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": {
"sketch": "<sketch>"
},
"name": "create_sketch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | ||
| content | No | void setup() { } void loop() { } | |
| location | No | workspace |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| status | Yes | ||
| warnings | No | ||
| request_id | No | ||
| next_actions | No |