Upload Sketch to Board
upload_sketchUpload a compiled sketch to an Arduino board, optionally using previously saved board settings to simplify the process.
Instructions
Upload a compiled sketch to an Arduino board.
TIP: If you used arduino-cli board attach on this sketch, FQBN and port are optional!
The settings will be read from sketch.yaml automatically.
For project-based workflows, use board attach first: arduino_cli_command("board attach -p COM3 -b arduino:avr:uno MySketch")
Then upload without specifying FQBN/port each time. See the sketch_project_workflow prompt for details.
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_path": "<sketch_path>",
"fqbn": "<fqbn>",
"port": "<port>"
},
"name": "upload_sketch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch_path | Yes | ||
| fqbn | Yes | ||
| port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |