Wait for Terminal Output
terminal_waitWaits for newer terminal output after a known cursor in an active session so agents can monitor live serial or SSH activity without repeated snapshot reads.
Instructions
Wait only for terminal output bytes after a known cursor; use terminal_read without cursor for an immediate snapshot. This does not return file-transfer status; use terminal_wait_file_transfer for transfer completion or cancellation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | Yes | 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 |