Read Session Events
terminal_session_eventsRead retained structured session events or wait for newer events from a cursor to monitor session activity without receiving terminal output bytes.
Instructions
Read retained structured Session events, or wait for events after an event cursor. Events never include terminal output bytes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Optional next event cursor; when set, wait for newer events. | |
| max_events | No | Maximum number of Session events 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 |
|---|---|---|---|
| next | Yes | ||
| events | Yes | ||
| dropped | Yes |