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_batch

send_keys_batch( onError?: "stop" | "continue", operations: Array<object>, )
tool [source]

Send input to a pane’s program; a shell that receives it runs it with your user’s permissions. Send an ordered batch of pane-input operations, resolving and checking each row’s configured cohort immediately before input. Stop or continue on error.

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

Arguments#

Result#

Returns object

No other properties are accepted.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"onError": {
"description": "Whether a failed operation ends the batch. Defaults to stop.",
"enum": [
"stop",
"continue"
],
"type": "string"
},
"operations": {
"description": "The key sends to run, in order, one pane each.",
"items": {
"properties": {
"enter": {
"description": "Press Enter afterwards. Default true.",
"type": "boolean"
},
"force": {
"description": "Allow this server's own caller pane, as on `send_keys`.",
"type": "boolean"
},
"keys": {
"description": "Keys for this pane, as on `send_keys`.",
"type": "string"
},
"literal": {
"description": "Send the text literally rather than resolving key names.",
"type": "boolean"
},
"paneId": {
"description": "Stable pane id, e.g. %1.",
"pattern": "^%\\d+$",
"type": "string"
}
},
"required": [
"keys",
"paneId"
],
"type": "object"
},
"maxItems": 64,
"minItems": 1,
"type": "array"
}
},
"required": [
"operations"
],
"type": "object"
}
Output schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"completed": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"failures": {
"items": {
"additionalProperties": false,
"properties": {
"index": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"reason": {
"type": "string"
}
},
"required": [
"index",
"reason"
],
"type": "object"
},
"type": "array"
},
"targets": {
"items": {
"additionalProperties": false,
"properties": {
"index": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"resolvedPaneIds": {
"items": {
"description": "Stable pane id, e.g. %1.",
"pattern": "^%\\d+$",
"type": "string"
},
"type": "array"
}
},
"required": [
"index",
"resolvedPaneIds"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"completed",
"failures",
"targets"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference