Compile Arduino Sketch
compile_sketchCompiles an Arduino sketch, reading board settings from sketch.yaml if already attached. Attach board once, then compile without specifying FQBN for simpler workflows.
Instructions
Compile an Arduino sketch.
TIP: If you used arduino-cli board attach on this sketch, FQBN is optional!
The board 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 compile without specifying FQBN each time. See the sketch_project_workflow prompt for details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch_path | Yes | ||
| fqbn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |