Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

paste_text

Require the target pane to be live and outside human-owned mode, then stage a private target-only buffer, optionally append Enter, paste it once, and verify cleanup. Empty text without Enter is a guarded buffer-free no-op. Send input to a pane’s program; a shell that receives it runs it with your user’s permissions.

All C++ tools · JSON · Source

Arguments

enter optional · boolean
Append Enter to the same private paste buffer.
paneId required · string
Stable pane ID.
text required · string
Literal text to paste.

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"enter": {
"description": "Append Enter to the same private paste buffer.",
"type": "boolean"
},
"paneId": {
"description": "Stable pane ID.",
"maxLength": 512,
"type": "string"
},
"text": {
"description": "Literal text to paste.",
"maxLength": 1048576,
"type": "string"
}
},
"required": [
"paneId",
"text"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"changed": {
"type": "boolean"
},
"pane_id": {
"pattern": "^%[0-9]+$",
"type": "string"
}
},
"required": [
"pane_id"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Paste text into a tmux pane"
}
Esc

Type to search.