next_chunk
Return the next batch of buffered serial output lines, optionally filtered by regex, enabling non-blocking polling of device output.
Instructions
Return the next batch of buffered serial output lines.
Args: nlines: Maximum number of lines to return (default 50) pattern: Optional regex pattern to filter lines (only matching lines are returned)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nlines | No | ||
| pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |