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]

Sends input to the target’s configured effective synchronized cohort without waiting for output. Every configured member must be live, nonmodal, and neither caller nor attended. Reports configured pane ids observed before dispatch, not delivery receipts. wait_for_text discounts recognized input; wait for the prompt before typing into a cold shell. Send input to a pane’s program; a shell that receives it runs it with your user’s permissions.

MCP request method
tools/call Send send_keys as the tool name, with the arguments below.

Arguments#

  • enter? = false (boolean) #

    Press Enter afterward, as a real keypress. Unlike a key named “Enter” sent under literal:true, which types the four letters, this always submits. Defaults to false.

  • keys? (Array<string> | string) #

    The key names or literal strings to send. One value may be sent on its own, without a list.

  • literal? = false (boolean) #

    Send strings literally instead of as key names. Defaults to false.

  • pane_id (string) #

    The pane to act on, such as %1. Every listing tool returns these.

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": {
"default": false,
"description": "Press Enter afterward, as a real keypress. Unlike a key named \"Enter\" sent under literal:true, which types the four letters, this always submits. Defaults to false.",
"type": "boolean"
},
"keys": {
"description": "The key names or literal strings to send. One value may be sent on its own, without a list.",
"items": {
"type": "string"
},
"type": [
"array",
"string"
]
},
"literal": {
"default": false,
"description": "Send strings literally instead of as key names. Defaults to false.",
"type": "boolean"
},
"pane_id": {
"description": "The pane to act on, such as %1. Every listing tool returns these.",
"type": "string"
}
},
"required": [
"pane_id"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"keys": {
"type": "integer"
},
"literal": {
"type": "boolean"
},
"note": {
"type": "string"
},
"pane_id": {
"type": "string"
},
"resolved_pane_ids": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"pane_id",
"keys",
"literal",
"resolved_pane_ids"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference