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.

tool MCPlatest

paste_text

paste_text( enter?: boolean, force?: boolean, paneId: string, text: string, )
tool [source]

Send input to a pane’s program; a shell that receives it runs it with your user’s permissions. Put text into a pane without tmux interpreting any of it as key names. Use for content — a password, a code block, anything with characters a key parser would claim.

MCP request method
tools/call Send paste_text as the tool name, with the arguments below.

Arguments#

  • enter? (boolean) #

    Press Enter afterwards. Default false.

  • force? (boolean) #

    Allow writing to the pane this server itself was called from, which is otherwise refused. It does not override the refusal to write to a pane a person is watching — a pane an attached client has on screen is still refused with force.

  • paneId (string) #

    Stable pane id, e.g. %1.

    pattern
    "^%\\d+$"
  • text (string) #

    Text to paste. Sent through a tmux buffer, so a shell’s line editor does not redraw on every character.

Result#

Returns object

No other properties are accepted.

Annotations#

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Protocol data#

Use the complete advertised contract for validation and client integration.

Input schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"enter": {
"description": "Press Enter afterwards. Default false.",
"type": "boolean"
},
"force": {
"description": "Allow writing to the pane this server itself was called from, which is otherwise refused. It does not override the refusal to write to a pane a person is watching — a pane an attached client has on screen is still refused with force.",
"type": "boolean"
},
"paneId": {
"description": "Stable pane id, e.g. %1.",
"pattern": "^%\\d+$",
"type": "string"
},
"text": {
"description": "Text to paste. Sent through a tmux buffer, so a shell's line editor does not redraw on every character.",
"type": "string"
}
},
"required": [
"paneId",
"text"
],
"type": "object"
}
Output schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"bytes": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"paneId": {
"description": "Stable pane id, e.g. %1.",
"pattern": "^%\\d+$",
"type": "string"
}
},
"required": [
"bytes",
"paneId"
],
"type": "object"
}
Esc

Type to search.

Reference previewOpen reference