send_keys_batch
-
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/callSendsend_keys_batchas the tool name, with the arguments below.
Arguments#
-
onError? ("stop" | "continue") #Whether a failed operation ends the batch. Defaults to stop.
-
operations(Array<object>) #The key sends to run, in order, one pane each.
- minItems
1- maxItems
64
Result#
Returns object
-
- minimum
-9007199254740991- maximum
9007199254740991
No other properties are accepted.
Annotations#
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
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"}