port_in_use_by
Identify which program is holding a serial port on macOS or Linux. Use when a connection fails because the port is busy, or before asking the user to close the conflicting application.
Instructions
Report which program currently holds a serial port (macOS/Linux, via lsof).
Use when connect says the port is in use, or before asking the user to close something. On Windows the OS doesn't expose this; the usual suspects are a terminal (PuTTY), WSJT-X, a logger, or the Arduino Serial Monitor.
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": {
"port": "<port>"
},
"name": "port_in_use_by"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |