Serial Read
serial_readReads buffered bytes from an active serial session to retrieve incoming data.
Instructions
Read buffered bytes from an open serial session.
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": {
"sessionId": "<sessionId>"
},
"name": "serial_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | ||
| fromOffset | No | Read offset cursor. Defaults to current buffer start. | |
| maxBytes | No | Maximum bytes to return. | |
| encoding | No | Output encoding. Default: utf8. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| status | No | ||
| command | No | ||
| data | No | ||
| raw | No | ||
| rawTail | No | ||
| stage | No | ||
| errorCode | No | ||
| retryable | No | ||
| reasonCodes | No | ||
| nextActions | No | ||
| note | No | ||
| error | No |