create_session
Create a terminal session on an open serial port for interactive communication with serial devices. Configure line ending type and local echo to match your device's requirements.
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": {
"port": "<port>"
},
"name": "create_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | 串口路径,如 /dev/ttyUSB0 或 COM1 | |
| line_ending | No | 换行符类型:CR(回车)、LF(换行)、CRLF(回车换行) | CRLF |
| local_echo | No | 是否本地回显发送的命令 | |
| buffer_size | No | 输出缓冲区大小(字节),默认 64KB |