ssh_read_session
Fetch unread output from a monitored SSH session. Optionally wait for new data, handle truncated buffers, and check session status to ensure complete retrieval.
Instructions
Read unread output from a tracked SSH session. Set wait_seconds (e.g. 1-10) to block until new output arrives; 0 returns immediately with whatever is buffered right now. Default: 1.0. If 'truncated' is true or 'pending_output_chars' > 0, call again to drain remaining output. Check 'running' to know whether the session is still alive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| wait_seconds | No | Seconds to wait for new output. Default: 1.0. Set higher (5-10) for slow commands. Set 0 for instant polling. | |
| max_output_chars | No |