MCPconceptAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

mcp.src.TmuxTools.paste_text

#[tool_router(router = control_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "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.", title = "Paste Text Into Pane", meta = crate::capability_meta!(Execute, PaneInput, [Change], [TmuxMetadata], true, true, { "pane" => [TmuxLookup], "text" => [PaneInput], "enter" => [PaneInput] }) )] pub async fn paste_text( &self, Parameters(PasteTextArgs { pane, text, enter }): Parameters<PasteTextArgs>, ) -> Result<Json<Pasted>, ToolError>

Deliver text to a pane without typing it.

Esc

Type to search.

Reference previewOpen reference