execute
Send text to a shared serial port and read broadcast RX until an expected literal or timeout, returning observed output and additional writes.
Instructions
Send immediately and independently observe SHARED RX until literal expect or timeout.
Other MCP/Telnet clients may write at any time; no command/response queue or isolation. Any client's output can satisfy expect, so a match is not proof your command completed. additional_writes_observed counts subsequent writes from any source during this call. Result is bounded to 64 KiB. No automatic Ctrl+C, retry or input gating after timeout. wait_seconds is deprecated and ignored (v0.1 compatibility); no input lease exists.
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>",
"text": "<text>",
"expect": "<expect>"
},
"name": "execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| text | Yes | ||
| expect | Yes | ||
| newline | No | ||
| timeout | No | ||
| encoding | No | utf-8 | |
| wait_seconds | No |