upload
Flash a compiled Arduino sketch to a board via serial port, reusing a build path from a prior compile to skip recompilation.
Instructions
Upload a sketch to a board on a serial port. Prefer compile first with libraries/buildPath, then pass the same buildPath as inputDir (upload does not accept --libraries).
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": {
"sketchPath": "<sketchPath>",
"fqbn": "<fqbn>",
"port": "<port>"
},
"name": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqbn | Yes | Fully Qualified Board Name | |
| port | Yes | Serial port, e.g. COM3 or /dev/ttyACM0 | |
| verify | No | Verify flash after upload | |
| verbose | No | ||
| inputDir | No | Directory of prebuilt binaries from compile --build-path (skips recompile) | |
| sketchPath | Yes | Path to sketch folder or .ino file |