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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "ssh_read_session"
}
}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 |