Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

send_keys_batch

TypeScript

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.

All TypeScript tools · JSON · Source

Arguments

onError optional · string
Whether a failed operation ends the batch. Defaults to stop.
operations required · array
The key sends to run, in order, one pane each.

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

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"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false
}
Esc

Type to search.