MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

tool MCPlatest

send_keys

tool [source]

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/call Send send_keys as the tool name, with the arguments below.

Arguments#

  • enter? (boolean) #

    press Enter after keys, as a real key press, to submit them

  • keys (null | Array<string>) #

    key names or literal strings to send; do not put “Enter” here when literal is true, it types the five letters - set enter instead

  • literal? (boolean) #

    send strings literally instead of as key names

  • pane_id (string) #

    the pane id, such as %1

No other arguments are accepted.

Result#

Returns object

No other properties are accepted.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"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"
}
Esc

Type to search.

Reference previewOpen reference