close_port
Closes a serial port using its identifier to free resources and stop communication.
Instructions
Close an open serial port.
The port_id is the identifier returned when the port was opened.
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_id": "<port_id>"
},
"name": "close_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port_id | Yes | The port identifier returned from open_port |