send_command
Transmit a command string to a UART serial port terminal session, with the ability to automatically append a newline character to execute the command.
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": {
"session_id": "<session_id>",
"command": "<command>"
},
"name": "send_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | 会话ID(即串口路径),如 /dev/ttyUSB0 或 COM1 | |
| command | Yes | 要发送的命令内容 | |
| add_line_ending | No | 是否自动添加换行符 |