# paste_text

Source: https://libtmux.org/en/rs/latest/mcp/tools/paste_text/

> Put text into a pane through a tmux paste buffer instead of typing it key by key. Use this for anything long or awkward: send_keys types the text, so a shell reading it can react to each character, and a bracketed-paste aware program treats a paste as one block. Optional Enter is appended to that same block. Empty text without Enter is a guarded buffer-free no-op. Paste targets only the named pane, even when synchronized input is enabled. A dead, input-disabled, mode-owned, terminal-attended, or inherited-caller target is refused before setup and again immediately before paste. The private buffer is deleted after setup, refusal, and paste outcomes; observations can still race with tmux. A submitted paste is remembered briefly so wait_for_text can discount its own echo. Send input to a pane's program; a shell that receives it runs it with your user's permissions.

MCP is in development

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

Put text into a pane through a tmux paste buffer instead of typing it key by key. Use this for anything long or awkward: [send\_keys](https://libtmux.org/en/rs/latest/mcp/tools/send_keys/) types the text, so a shell reading it can react to each character, and a bracketed-paste aware program treats a paste as one block. Optional Enter is appended to that same block. Empty text without Enter is a guarded buffer-free no-op. Paste targets only the named pane, even when synchronized input is enabled. A dead, input-disabled, mode-owned, terminal-attended, or inherited-caller target is refused before setup and again immediately before paste. The private buffer is deleted after setup, refusal, and paste outcomes; observations can still race with tmux. A submitted paste is remembered briefly so [wait\_for\_text](https://libtmux.org/en/rs/latest/mcp/tools/wait_for_text/) can discount its own echo. Send input to a pane’s program; a shell that receives it runs it with your user’s permissions.

[All Rust tools](../) · [JSON](../paste_text.json) · [Source](https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/tmux-mcp/src/tools/control.rs#L607)

## Arguments

* `enter` optional · boolean

  Whether to append Enter to the same paste block.

  Default: `false`.

* `pane` required · string

  The \`%\`-prefixed pane to paste into.

* `text` required · string

  The text to deliver.

## Schemas

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