paste_text
-
Send input to a pane’s program; a shell that receives it runs it with your user’s permissions. Paste a block of text into exactly one pane through a tmux buffer. Use for multi-line text, or anything an editor would mangle if typed — bracketed paste stops auto-indent. Set enter to append a newline to that same private buffer. It refuses a target in a human-owned mode and never fans out to synchronized siblings. The temporary buffer is deleted afterwards; if cleanup fails, the result identifies what remains.
- MCP request method
tools/callSendpaste_textas the tool name, with the arguments below.- Wraps
LibTmux.Pane.PasteBufferAsyncThe library call this tool makes:src/LibTmux.Mcp/Tools/WriteTools.Input.cs:440.
Arguments
-
Use bracketed paste.
-
Append Enter to the same paste buffer.
-
paneId? =null(string | null)A pane id. Omit for this server’s own pane, or else the one the first session shows.
-
The text to paste.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Paste text"
Capability
- Toolset
- Execute Start or drive pane processes, or store state that can control later execution.
- Process reach
pane-input- tmux effects
changeobserve
Every C# tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"bracketed": {"default": true,"description": "Use bracketed paste.","type": "boolean"},"enter": {"default": false,"description": "Append Enter to the same paste buffer.","type": "boolean"},"paneId": {"default": null,"description": "A pane id. Omit for this server's own pane, or else the one the first session shows.","type": ["string","null"]},"text": {"description": "The text to paste.","type": "string"}},"required": ["text"],"type": "object"}Output schema
{"properties": {"changed": {"type": "string"},"paneId": {"default": null,"type": ["string","null"]},"sessionId": {"default": null,"type": ["string","null"]},"windowId": {"default": null,"type": ["string","null"]}},"required": ["changed"],"type": "object"}