read_target_console
Read UART console output from a target board's passive ring buffer to capture bootloader or kernel messages; filter by regex and select earliest or most recent lines.
Instructions
Read lines from the target board UART console buffer (CDC1).
NOTE: This reads the passive UART reception ring buffer (e.g. bootloader or kernel output).
To read system logs from an already running Linux target, use send_target_command.
Args: tail_lines: Number of most recent lines from the end of the buffer (default: 50 if head_lines not specified). head_lines: Number of earliest lines from the start of the buffer (e.g. first N lines of bootloader after reset). grep: Optional case-insensitive regex pattern to filter lines (e.g. 'panic|error|SafeRTOS').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | ||
| head_lines | No | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |