# send_keys_batch

Source: https://libtmux.org/en/py/latest/mcp/tools/send_keys_batch/

> Send an ordered batch of raw key/text operations to tmux panes.

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

Send an ordered batch of raw key/text operations to tmux panes.

Use this for bulk TUI or persistent-shell input where each item is the same kind of low-level terminal interaction as :func:`~libtmux_mcp.tools.pane_tools.send_keys`. For authored shell commands that need exit status and captured output, use :func:`~libtmux_mcp.tools.pane_tools.run_command` instead. For repeated observation after sending input, use :func:`~libtmux_mcp.tools.pane_tools.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.

[All Python tools](../) · [JSON](../send_keys_batch.json) · [Source](https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/tools/pane_tools/__init__.py#L87)

## Arguments

* `on_error` optional · string

  Whether to stop at the first failed operation or keep attempting later operations. Default "stop".

  Default: `"stop"`.

* `operations` required · array

  Ordered raw-input operations to send.

* `socket_name` optional

  tmux socket name.

  Default: `null`.

* `timeout` optional

  Maximum time in seconds to allow the batch to run before aborting.

  Default: `null`.

## Schemas

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