List Serial Ports
list_serial_portsIdentify available serial ports and detected board metadata on Windows, macOS, or Linux to verify connections before compiling or uploading.
Instructions
List serial ports and any detected board metadata using arduino-cli. Works on Windows/macOS/Linux.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_serial_ports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| raw | No | ||
| data | No | ||
| note | No | ||
| error | No | ||
| stage | No | ||
| status | No | ||
| command | No | ||
| rawTail | No | ||
| errorCode | No | ||
| retryable | No | ||
| nextActions | No | ||
| reasonCodes | No |