serial.readline
Read a line of data from a serial connection until a newline character or maximum bytes limit is reached, with configurable timeout, output format, and line terminator.
Instructions
Read a line from the serial port (reads until the newline character is received or max_bytes is reached). Uses the connection's newline setting by default.
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.readline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes | ||
| timeout_ms | No | Override read timeout (milliseconds). | |
| max_bytes | No | Maximum bytes to read (default 4096). | |
| newline | No | Override line terminator (defaults to connection newline). | |
| as | No | Output format (default text). | text |