# paste_text

Source: https://libtmux.org/en/ts/latest/mcp/tools/paste_text/

> 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.

tool MCPlatest

MCP concept example

A working example of the core library. It can change without notice.

[What concept means](https://libtmux.org/en/meta/support/#concept-and-alpha)

* **paste_text**( [enter](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2Fenter)?: [boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"), [force](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2Fforce)?: [boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"), [paneId](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2FpaneId): [string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"), [text](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2Ftext): [string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"), )

  tool \[[source](https://github.com/libtmux/libtmux-ts/blob/46cccfef2a546de55ce8b308249b8c76339089a0/packages/mcp/src/tools/input.ts#L189)][¶](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text)

  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[#](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.parameters)

  * **[`enter`](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2Fenter)**? ([boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"))

    Press Enter afterwards. Default false.

  * **[`force`](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2Fforce)**? ([boolean](https://json-schema.org/understanding-json-schema/reference/boolean "boolean (JSON Schema)"))

    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`](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2FpaneId)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

    Stable pane id, e.g. %1.

    * pattern

      `"^%\\d+$"`

  * **[`text`](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.input%2Fproperties%2Ftext)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

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

  ## Result[#](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.result)

  Returns [object](https://json-schema.org/understanding-json-schema/reference/object "object (JSON Schema)")

  * **[`bytes`](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.output%2Fproperties%2Fbytes)** ([integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"))

    * minimum

      `-9007199254740991`

    * maximum

      `9007199254740991`

  * **[`paneId`](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.output%2Fproperties%2FpaneId)** ([string](https://json-schema.org/understanding-json-schema/reference/string "string (JSON Schema)"))

    Stable pane id, e.g. %1.

    * pattern

      `"^%\\d+$"`

  No other properties are accepted.

  ## Annotations[#](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.annotations)

  * [`destructiveHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#destructiveHint)

    `true`

  * [`idempotentHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#idempotentHint)

    `false`

  * [`openWorldHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#openWorldHint)

    `true`

  * [`readOnlyHint`](https://libtmux.org/en/ts/latest/mcp/reference/glossary/#readOnlyHint)

    `false`

  ## Protocol data[#](https://libtmux.org/en/ts/latest/mcp/tools/paste_text/#mcp.tool.paste_text.schemas)

  Use the complete advertised contract for validation and client integration.

  Input schema

  ```json
  {
    "$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

  ```json
  {
    "$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"
  }
  ```
