serial.read_until
Read serial port data until a delimiter string is encountered or a maximum byte count is reached, with configurable timeout and output format.
Instructions
Read from the serial port until a delimiter string is received or max_bytes is reached.
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": {
"connection_id": "<connection_id>"
},
"name": "serial.read_until"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| delimiter | No | Delimiter to read until (default \n). | \n |
| timeout_ms | No | Override read timeout (milliseconds). | |
| max_bytes | No | Maximum bytes to read (default 4096). | |
| as | No | Output format (default text). | text |