Skip to main content
Glama
tmux-mcp-tools

tmux-mcp-tools

by PsychArch

Tmux Send Keys

tmux_send_keys

Send raw keystrokes to a tmux pane without executing them, enabling interactive program control (debuggers, REPLs, TUIs), control sequences like C-c, and navigation input.

Instructions

Send raw keystrokes without automatic Enter.

For:

  • Interactive program control (debuggers, REPLs, TUIs)

  • Control sequences (C-c, navigation)

  • Typing without executing

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": {
      "keys": "<keys>",
      "target_pane": "<target_pane>"
    },
    "name": "tmux_send_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYesKeys to send. special keys: C-x (Control), M-x (Alt), S-x (Shift), Escape, Up, Left, Home, F1-F24 literal texts: Any text NOT matching special key patterns above Example: ["python", "C-m", "import sys", "C-m"], ["C", "-", "m"] for input C-m as literal
target_paneYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry the behavioral burden, and it does disclose the most important trait: no Enter is appended, so text lands in the pane unexecuted. It omits what happens if the target pane doesn't exist, error/no-op behavior, and whether output confirms the send — gaps that matter for a side-effecting input tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One front-loaded sentence carrying the critical constraint, followed by a compact bullet list of use cases. Every line adds information; there is no filler or repetition of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return values are covered by the output schema and the core send semantics are explained, so the definition is usable. However, for a tool that injects input into a live pane it leaves the target_pane format and failure behavior undocumented, which is a meaningful omission given no annotations exist.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 50%: the keys parameter is richly documented in the schema (special-key syntax, escaping examples), so the description adds nothing there, while target_pane has no description in either place and the definition gives no hint of its expected format (e.g. session:window.pane). The description does not compensate for the documented gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (send raw keystrokes) plus the key differentiator from a command-sending tool: no automatic Enter. It doesn't name tmux_send_command explicitly, so the sibling distinction is inferred rather than declared, but the behavior difference is concrete enough for an agent to choose correctly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The three bullet contexts (interactive program control, control sequences, typing without executing) give clear when-to-use guidance, with 'typing without executing' implicitly excluding the execute-a-command case. It stops short of naming the alternative tool or stating any when-not conditions, so it is not a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.