Send Keys
send_keysSend special keys and key sequences to an SSH session to answer prompts, interrupt commands, or navigate terminal interfaces.
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"
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": {
"host": "<host>",
"keys": "<keys>"
},
"name": "send_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Hostname, IP address, or SSH config alias | |
| keys | Yes | Key sequence to send (e.g., "q<enter>", "<esc>:wq<enter>", "<ctrl-c>") | |
| port | No | SSH port (optional) | |
| username | No | SSH username (optional) |