ssh_shell_send
Send text to an interactive SSH shell session and retrieve recent shell output. Control line ending, wait time, and number of returned lines.
Instructions
Send text to the interactive shell. By default appends Enter (newline) and waits briefly to capture output.
Args: session_id: The session ID returned by ssh_connect. data: Text to send to the shell. press_enter: Whether to append a newline after the text (default: True). wait: Seconds to wait for output after sending (default: 1.0). read_lines: Number of tail lines to return from the shell buffer (default: 100).
Returns: Recent shell output (tail of buffer).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| data | Yes | ||
| press_enter | No | ||
| wait | No | ||
| read_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |