mcp.src.TmuxTools.paste_text
- #[tool_router(router = control_router, vis = "pub(super)")] impl Tmux
Tools #[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(PasteText : Parameters<PasteArgs { pane, text, enter }) Text >, ) -> Result<Json<Pasted>, ToolArgs Error > -
Deliver text to a pane without typing it.