serial_output_history
Read past serial console output without consuming it. Page losslessly with a since_seq cursor, or fetch recent text by seconds or last_bytes.
Instructions
Read past output from the broker's shared history without consuming it. For anything you must not miss, page with since_seq (start at 0; pass the returned cursor back; check dropped and has_more). Without since_seq: text by seconds or last_bytes. serial_read is drain-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seconds | No | If > 0, return output from the last N seconds (prose). | |
| max_bytes | No | With since_seq: max raw bytes in this page (default broker cap). | |
| since_seq | No | Cursor from a prior history response: lossless page as JSON (cursor/dropped/has_more/chunks). Prefer this over serial_read. | |
| last_bytes | No | If > 0, return the last N bytes of output (prose). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| text | No | ||
| chunks | No | ||
| cursor | No | ||
| dropped | No | ||
| has_more | No |