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.paste_text

libtmux_mcp.tools.pane_tools.paste_text ( text: str, pane_id: str | None = None, bracket: bool = True, session_name: str | None = None, session_id: str | None = None, window_id: str | None = None, socket_name: str | None = None, ) → str

Paste multi-line text into a pane using tmux paste buffers.

Description#

Uses tmux's load-buffer and paste-buffer for clean multi-line input, avoiding the issues of sending text line-by-line via send_keys. Supports bracketed paste mode for terminals that handle it.

When to use this vs. load_buffer + paste_buffer: paste_text is the fire-and-forget path — the buffer is created, pasted, and deleted in one call. Use load_buffer + paste_buffer when you need to stage content first, paste it into multiple panes, or inspect it with show_buffer before pasting.

Parameters
Returns

str Confirmation message.

Esc

Type to search.

Reference preview Open reference