read_serial
Read serial output from a microcontroller for a specified duration. Returns all data received during that time, useful for capturing firmware logs.
Instructions
Read whatever the device prints on port for seconds, then return it.
This opens the port, listens passively, and gives back everything it saw. Great for "what is my firmware logging right now?".
Args: port: Serial port name, e.g. "COM5" or "/dev/ttyACM0". baudrate: Bits per second. Must match your firmware (default 115200). seconds: How long to listen. Capped at 30s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| seconds | No | ||
| baudrate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||