Skip to main content
Glama

Send Keys to Pane

pane_send_keys

Send logical key presses such as Ctrl+C, Esc, or Enter to a specified terminal pane, enabling control of interactive coding agents and shell panels.

Instructions

Send logical key presses (such as ['ctrl+c'], ['esc'], ['enter']) to a pane.

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": {
      "pane_id": "<pane_id>",
      "keys": "<keys>"
    },
    "name": "pane_send_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysYesOrdered list of logical key names.
pane_idYesTarget pane ID.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.7/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false. The description adds useful key-name examples but does not explain behavioral details such as whether the pane must be focused, how the keys are delivered, or what side effects may occur.

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?

The description is a single front-loaded sentence with no filler. Every part contributes to identifying the action, target, and key format.

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 two-parameter tool with full schema coverage and annotations covering safety, the definition is largely complete. It could be more complete by mentioning focus requirements or delivery behavior, but nothing essential is missing for basic invocation.

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 100%, so the schema already documents both parameters. The description adds concrete syntax examples such as ['ctrl+c'], ['esc'], and ['enter'] that clarify the logical key-name format beyond the schema's generic wording.

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 gives a specific verb and resource: "Send logical key presses ... to a pane," with example keys. It is clear what the tool does, but it does not explicitly distinguish itself from the sibling pane_send_text tool.

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?

Usage is implied by the distinction between "logical key presses" and literal text, but there is no explicit guidance on when to use this versus pane_send_text. No exclusions or prerequisites are stated.

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