MCPpre-alphaAPI Reference

Choose documentation 3

stable

Current version

stable
English

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

libtmux_mcp.tools.pane_tools.send_keys_batch

libtmux_mcp.tools.pane_tools.send_keys_batch ( operations: list[SendKeysOperation], on_error: t.Literal["stop", "continue"] = "stop", timeout: float | None = None, socket_name: str | None = None, ) → SendKeysBatchResult

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, use run_command instead. For repeated observation after sending input, use capture_since with 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
Returns

SendKeysBatchResult Per-operation results with success/error counts and stop index.

Esc

Type to search.

Reference preview Open reference