tmux_send_keys
Send key tokens (Enter, Escape, C-c, arrows) to a tmux session's active pane for controlling interactive programs like REPLs and shells.
Instructions
Send key tokens to a tmux session's active pane (supports keys like Enter, Escape, C-c, Up, Down).
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": "tmux_send_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | List of tmux key tokens or literal strings. | |
| enter | No | Append Enter after keys. | |
| literal | No | Use tmux send-keys -l (send literal text). | |
| session_id | Yes |