onda_terminal_subscribe
Attach a persistent listener to a terminal's output stream to monitor its activity. Returns a session ID for polling updates and an initial buffer snapshot for full context.
Instructions
Attach a long-lived listener to a terminal's output stream. Returns a sessionId for use with onda_terminal_poll. Also returns the current buffer snapshot so the listener has full context. Cap of 4 concurrent listeners per terminal. The listener's name is shown in the Onda UI as a presence indicator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Terminal ID to subscribe to. | |
| listener | Yes | Display name for this listener (shown in Onda UI presence badge). e.g. "alita", "kai", "ci-watch". |