# set_history_limit

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

> Change tmux state; no client-supplied executable input. Set the default retained scrollback line limit through a bounded integer.

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)

* **set_history_limit**( [lines](https://libtmux.org/en/ts/latest/mcp/tools/set_history_limit/#mcp.tool.set_history_limit.input%2Fproperties%2Flines): [integer](https://json-schema.org/understanding-json-schema/reference/numeric "numeric (JSON Schema)"), )

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

  Change tmux state; no client-supplied executable input. Set the default retained scrollback line limit through a bounded integer.

  * MCP request method

    `tools/call` Send `set_history_limit` as the tool name, with the arguments below.

  ## Arguments[#](https://libtmux.org/en/ts/latest/mcp/tools/set_history_limit/#mcp.tool.set_history_limit.parameters)

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

    Scrollback lines each new pane keeps. Applies to panes made after this.

    * minimum

      `0`

    * maximum

      `2000000`

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

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

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

    * minimum

      `-9007199254740991`

    * maximum

      `9007199254740991`

  No other properties are accepted.

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

  Use the complete advertised contract for validation and client integration.

  Input schema

  ```json
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "lines": {
        "description": "Scrollback lines each new pane keeps. Applies to panes made after this.",
        "maximum": 2000000,
        "minimum": 0,
        "type": "integer"
      }
    },
    "required": [
      "lines"
    ],
    "type": "object"
  }
  ```

  Output schema

  ```json
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "lines": {
        "maximum": 9007199254740991,
        "minimum": -9007199254740991,
        "type": "integer"
      }
    },
    "required": [
      "lines"
    ],
    "type": "object"
  }
  ```
