terminal_send_key
Send special keys like Enter, Ctrl-C, Tab, or arrow keys to a terminal session, enabling command submission, interruption, navigation, and control of interactive CLI workflows.
Instructions
Send a special key to the terminal. Supported keys: enter, escape, tab, space, backspace, delete, up, down, left, right, home, end, pageup, pagedown, ctrl-c, ctrl-d, ctrl-z, ctrl-l, ctrl-a, ctrl-e, ctrl-k, ctrl-u, ctrl-w, ctrl-r, ctrl-p, ctrl-n.
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>",
"key": "<key>"
},
"name": "terminal_send_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to send (e.g., 'enter', 'ctrl-c', 'tab', 'up') | |
| session_id | Yes | The session ID returned by terminal_spawn |