Serial Close
serial_closeTerminate a serial monitor session and free its port; returns success or an unknown-session error.
Instructions
Terminate a serial monitor session and free its port.
Returns {ok: true} on success, or {ok: false, reason} if the session is unknown.
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": {
"session_id": "<session_id>"
},
"name": "serial_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Id from `serial_open`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false when `session_id` is unknown | |
| reason | No |