terminal_send_key
Sends special keys and key combinations to a terminal session, enabling prompt confirmation, command-history navigation, and interrupt signals for interactive commands.
Instructions
Send special keys and key combinations to a terminal session. Use this for navigation, control sequences, and interactive commands that require specific key presses. Essential for terminal interactions like confirming prompts, navigating command history, or sending interrupt signals.
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": {
"sessionId": "<sessionId>",
"key": "<key>"
},
"name": "terminal_send_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Special key to send. Supported keys: enter, tab, backspace, up, down, left, right, home, end, pageup, pagedown, delete, escape, ctrl+c, ctrl+d, ctrl+z, ctrl+l, ctrl+a, ctrl+e, ctrl+k, ctrl+u, ctrl+w, ctrl+r, ctrl+s, ctrl+q, space, f1-f12. Use "enter" to execute commands, "ctrl+c" to interrupt processes, "up/down" for command history. | |
| sessionId | Yes | Terminal session ID to send the key to |