Read Serial Snapshot
read_serial_snapshotCapture serial port output for a bounded duration to view Arduino debug messages or sensor readings.
Instructions
Capture serial output for a bounded duration from a given port.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Serial port path, e.g. COM6 or /dev/ttyACM0. | |
| baudRate | No | Baud rate. Default: 9600. | |
| durationMs | No | Capture duration in ms. |
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 |