send_keys
Send raw keystrokes to a specified SSH session using tmux notation, enabling interactive input, interrupts (Ctrl+C), EOF, and special keys without hitting Enter.
Instructions
Send raw keystrokes to a session without appending Enter.
Use this for:
Interrupting commands: keys="C-c" (Ctrl+C)
Sending EOF: keys="C-d" (Ctrl+D)
Interactive input: keys="yes" (without submitting)
Special keys: keys="Enter", keys="Tab", keys="BSpace"
Tmux key notation: C-x (Ctrl), M-x (Alt), S-x (Shift). Multiple keys: "C-c Enter" After sending keys, use get_snapshot() to see the result.
Args: session_id: The ID of the session (format: user@host-). keys: Keys to send using tmux notation.
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": {
"session_id": "<session_id>",
"keys": "<keys>"
},
"name": "send_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |