libtmux_mcp.tools.pane_tools.send_keys_batch
- libtmux_mcp.tools.pane_tools.send_keys_batch ( operations: list[Send
Keys ], on_error: tOperation .Literal ["stop", "continue"] = "stop", timeout: float | None = None, socket_name: str | None = None, ) SendKeys Batch Result -
Send an ordered batch of raw key/text operations to tmux panes.
Description#
Use this for bulk TUI or persistent-shell input where each item is the same kind of low-level terminal interaction as
send_keys. For authored shell commands that need exit status and captured output, userun_commandinstead. For repeated observation after sending input, usecapture_sincewith its returned cursor.This tool intentionally does not compose heterogeneous operations such as send → wait → capture. Keeping the batch homogeneous preserves clear per-operation error attribution and avoids embedding a workflow DSL in the MCP tool surface.
- Parameters
-
-
operations(list[SendKeys ]) # – Ordered raw-input operations to send.Operation -
on_error(t.Literal ["stop", "continue"]) # – Whether to stop at the first failed operation or keep attempting later operations. Default "stop". -
timeout(float | None) # – Maximum time in seconds to allow the batch to run before aborting. -
socket_name(str | None) # – tmux socket name.
-
- Returns
-
SendKeysBatchResult Per-operation results with success/error counts and stop index.