MCPconceptTools

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.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

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/call Send paste_text as 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

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Paste text"

Capability

Toolset
Execute Start or drive pane processes, or store state that can control later execution.
Process reach
pane-input
tmux effects
change observe

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"
}
Esc
Search in

Type to search.

Reference previewOpen reference