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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch_path | Yes | ||
| fqbn | Yes | ||
| port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |