ssh_shell_read
Read recent output from a remote SSH shell session to monitor long-running commands without sending new input.
Instructions
Read the current content of the interactive shell buffer. Use this to poll for output from long-running commands without sending anything.
Args: session_id: The session ID returned by ssh_connect. lines: Number of tail lines to return (default: 100).
Returns: Recent shell output (tail of buffer).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |