serial_close
Closes a serial port handle to release the port and prevent resource leaks after debugging. Use when finished with serial communication.
Instructions
关闭串口句柄。调试结束记得关,释放端口。
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": {
"handle": "<handle>"
},
"name": "serial_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |