Read Terminal Output
terminal_readRead retained terminal output immediately, or supply a cursor to wait for newer bytes from an active serial or SSH session.
Instructions
Read retained terminal output immediately when cursor is omitted; use terminal_wait to wait for new bytes after a known cursor. For U-Boot entry, use this to inspect evidence and prepare terminal_enter_uboot; let that Host-side tool interrupt the countdown rather than polling and sending keys from the client. Retained prompts alone do not establish current device state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Optional next output cursor; when set, wait for newer output. | |
| encoding | No | Output representation: utf8, hex, or base64. | |
| max_bytes | No | Maximum number of output bytes to return. | |
| session_id | Yes | Active Session ID or short reference. | |
| timeout_ms | No | Optional wait timeout in milliseconds when cursor is supplied; maximum 86400000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| next | Yes | ||
| dropped | Yes | ||
| encoding | Yes | ||
| bytes_read | Yes |