Skip to main content
Glama

Send a key to a pane

cmux_send_key

Send named keys or Ctrl chords to terminal panes, including Enter, Tab, Escape, and C-c, and target another workspace or window when needed.

Instructions

Send a named key such as Enter, Tab, Escape, C-c, C-d. Ctrl chords accept either form: "C-u" or "ctrl+u". Pass workspace/window to target a surface in another workspace.

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": {
      "key": "<key>"
    },
    "name": "cmux_send_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYese.g. "Enter", "C-c" / "ctrl+c".
windowNoWindow ref like "window:1". Defaults to the caller's window.
surfaceNoSurface ref like "surface:40". Defaults to the current pane.
workspaceNoWorkspace ref like "workspace:26". Defaults to the caller's workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.13

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It helpfully explains how chord names are interpreted ('Ctrl chords accept either form: "C-u" or "ctrl+u"'), which is real input-handling behavior the schema only hints at, but it says nothing about side effects, error behavior for unrecognized key names, or whether the call waits for the key to be processed.

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

Conciseness4/5

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

Three short sentences, front-loaded with the accepted key vocabulary and then the targeting rule; nothing is padded. The key examples overlap somewhat with the schema's own examples, a minor redundancy.

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

Completeness5/5

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

This is a simple four-parameter, single-required-parameter tool with fully documented parameters and no output schema, so the description need not explain return values. Between the schema and the description, an agent has what it needs to call it correctly, including the one non-obvious targeting pattern.

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

Parameters4/5

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

Schema coverage is already 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema: the chord-alias equivalence rule and the reason to supply window/workspace at all (to reach a surface in another workspace). That cross-parameter relationship is not expressed in the schema text.

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?

The description states a specific verb and resource ('send a named key') and enumerates concrete accepted values (Enter, Tab, Escape, C-c, C-d), so the agent knows exactly what operation is performed. It does not, however, distinguish itself from the sibling cmux_send, which plausibly sends literal text input — that boundary is left to inference.

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

Usage Guidelines3/5

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

It gives targeting guidance ('Pass workspace/window to target a surface in another workspace'), which is useful steering for one parameter combination. It offers no explicit when-to-use versus when-not guidance and never contrasts itself with cmux_send or cmux_raw, so usage is only implied from the key-name vocabulary.

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