List Serial Ports
list_serial_portsList available serial ports and detect connected Arduino boards with metadata. Supports Windows, macOS, and Linux.
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 | ||
| status | No | ||
| command | No | ||
| data | No | ||
| raw | No | ||
| rawTail | No | ||
| stage | No | ||
| errorCode | No | ||
| retryable | No | ||
| reasonCodes | No | ||
| nextActions | No | ||
| note | No | ||
| error | No |