serial_capture
Capture serial output from a UART port for a set duration to verify firmware boot status and expected output after flashing.
Instructions
Open a serial port and capture its output for a bounded duration. Useful to verify firmware behavior after flashing: read the UART log and let the agent judge if 'boot ok' / version string / expected output appears. Port/baud default to builder.json 'serial' section; auto-picks first port if none given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| baud | No | Baud rate. Empty = builder.json serial.baud (default 115200). | |
| port | No | Serial port (e.g. 'COM3', '/dev/ttyUSB0'). Empty = builder.json serial.default_port or auto-detect. | |
| project | No | Project root. Defaults to cwd. | |
| max_lines | No | Maximum lines to capture. | |
| duration_seconds | No | How long to capture, in seconds. |