Serial Read
serial_readRead buffered bytes from an open serial session to monitor output or retrieve data. Specify session ID, optional encoding, max bytes, and offset.
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 |
|---|---|---|---|
| encoding | No | Output encoding. Default: utf8. | |
| maxBytes | No | Maximum bytes to return. | |
| sessionId | Yes | ||
| fromOffset | No | Read offset cursor. Defaults to current buffer start. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| raw | No | ||
| data | No | ||
| note | No | ||
| error | No | ||
| stage | No | ||
| status | No | ||
| command | No | ||
| rawTail | No | ||
| errorCode | No | ||
| retryable | No | ||
| nextActions | No | ||
| reasonCodes | No |