ssh_shell_write
Sends a command to an active SSH shell session identified by session ID. Optionally clears the command buffer before execution to isolate output.
Instructions
Send a command to an SSH shell session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer | |
| command | Yes | The command to send to the shell | |
| session_id | Yes | The session ID returned by ssh_shell_open |