send_keys
Send key sequences and special keys like Ctrl+C or arrow keys to an active SSH session for automated interaction.
Instructions
Send special keys or key sequences to a session.
Supports special key tokens:
or : Send newline
or : Send escape key
: Send tab key
: Send Ctrl+C (interrupt)
: Send Ctrl+D (EOF)
: Send Ctrl+Z (suspend)
, , , : Arrow keys
: Space character
Regular text is sent as-is. Mix special keys with text: "helloworld"
Args: host: Hostname, IP address, or SSH config alias keys: Key sequence to send (e.g., "q", ":wq", "") username: SSH username (optional) port: SSH port (optional)
Returns: Success message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| keys | Yes | ||
| username | No | ||
| port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |