Send keys or literal text
send_keysSends named tmux keys or literal text to a session without shell interpretation, with optional Enter after text.
Instructions
Send named tmux keys (C-c, Escape, Up, ...) or literal text to a session without shell interpretation. Enter is only pressed for literal text when enter is true. Defaults to the owned session "mcp"; other targets require force: true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "send_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Named keys, e.g. ["C-c"] | |
| text | No | Literal text to insert | |
| enter | No | Press Enter after literal text | |
| force | No | Allow writing to a foreign, attached, or non-shell target | |
| session | No | Target session (default: owned session "mcp") |