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

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

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

[All TypeScript tools](https://libtmux.org/en/ts/latest/mcp/tools/) · [JSON](https://libtmux.org/en/ts/latest/mcp/tools/set_history_limit.json) · [Source](https://github.com/libtmux/libtmux-ts/blob/b3f338c1a21e614ebf0dd6d55aa36a60db816618/packages/mcp/src/tools/target.ts#L420)

## Arguments

* `lines` required · integer

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

## Schemas

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

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"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false
}
```
