libtmux_mcp.tools.pane_tools.paste_text
-
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_textis the fire-and-forget path — the buffer is created, pasted, and deleted in one call. Useload_buffer+paste_bufferwhen you need to stage content first, paste it into multiple panes, or inspect it withshow_bufferbefore pasting.- Parameters
-
-
bracket(bool) # – Whether to use bracketed paste mode. Default True. Bracketed paste wraps the text in escape sequences that tell the terminal "this is pasted text, not typed input". -
session_name(str | None) # – Session name for pane resolution. -
session_id(str | None) # – Session ID for pane resolution. -
socket_name(str | None) # – tmux socket name.
- Returns
-
str Confirmation message.