serial_read
Retrieve buffered bytes from an open serial port, choosing UTF-8, hex, or base64 output. Limit bytes via maxBytes to prevent context overflow.
Instructions
Read buffered bytes from the open serial port. Buffer is capped (~64KB) to protect agent context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | How to encode returned bytes | utf8 |
| maxBytes | No | Max bytes to return |