send_keys
-
Send input to a pane’s program; a shell that receives it runs it with your user’s permissions. Sends keys to a pane and to every pane synchronize-panes links it with; the ids reported are the panes checked before sending, not proof that each one received the keys.
- MCP request method
tools/callSendsend_keysas the tool name, with the arguments below.
Arguments#
-
press Enter after keys, as a real key press, to submit them
-
key names or literal strings to send; do not put “Enter” here when literal is true, it types the five letters - set enter instead
-
send strings literally instead of as key names
-
the pane id, such as %1
No other arguments are accepted.
Result#
Returns object
No other properties are accepted.
Annotations#
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Send keys"
Protocol data#
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"enter": {"description": "press Enter after keys, as a real key press, to submit them","type": "boolean"},"keys": {"description": "key names or literal strings to send; do not put \"Enter\" here when literal is true, it types the five letters - set enter instead","items": {"type": "string"},"type": ["null","array"]},"literal": {"description": "send strings literally instead of as key names","type": "boolean"},"pane_id": {"description": "the pane id, such as %1","type": "string"}},"required": ["pane_id","keys"],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"pane_id": {"type": "string"},"resolved_pane_ids": {"items": {"type": "string"},"type": ["array"]},"sent": {"type": "integer"}},"required": ["pane_id","resolved_pane_ids","sent"],"type": "object"}