Skip to main content
Glama

Send text to a pane

cmux_send

Types literal text into a terminal surface without pressing Enter; follow with an Enter key action, optionally targeting another workspace, window, or surface.

Instructions

Type literal text into a terminal surface. Does NOT press Enter — follow with cmux_send_key Enter. 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": {
      "text": "<text>"
    },
    "name": "cmux_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
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

A4/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 burden; it usefully discloses that Enter is NOT pressed, which is the main behavioral gotcha. It does not say whether text is typed or pasted, how special characters/newlines are handled, whether the call waits or returns a confirmation, or any permission/rate constraints.

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?

Three short sentences, each earning its place: purpose first, the critical no-Enter caveat second, cross-workspace targeting last. No filler or restated title content.

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

Completeness4/5

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

For a simple, no-annotation, no-output-schema tool, the description covers the essential pitfalls: literal text, no automatic Enter, and targeting remote surfaces. Only edge-case behavior for special characters or call semantics is missing.

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

Parameters3/5

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

Schema description coverage is 75% and 'text' is documented only as a bare string, but 'literal text' in the description clarifies its interpretation. The note that workspace/window target another workspace adds modest meaning beyond the per-field default statements in the schema, so the 3 baseline holds.

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

Purpose5/5

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

States a specific verb and object — 'Type literal text into a terminal surface' — and the word 'literal' plus the explicit denial of Enter semantics separates it from cmux_send_key. An agent can pick between cmux_send and cmux_send_key from the description alone.

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?

Gives concrete sequencing guidance ('follow with cmux_send_key Enter') and explains that workspace/window let you target a surface in another workspace. It stops short of stating when to avoid this tool (e.g. control characters or keys), which is left implicit.

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