# set_history_limit

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

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

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.

[All Swift tools](https://libtmux.org/en/swift/latest/mcp/tools/) · [JSON](https://libtmux.org/en/swift/latest/mcp/tools/set_history_limit.json) · [Source](https://github.com/libtmux/libtmux-swift/blob/63551afeae8ea3d272e5262208b87735888daf5f/Sources/LibTmuxMCP/ToolOperation.swift#L30)

## Arguments

* `lines` required · integer

  Caller-controlled lines.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "lines": {
      "description": "Caller-controlled lines.",
      "maximum": 2000000,
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "lines"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "lines": {
      "type": "integer"
    }
  },
  "required": [
    "lines"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Set history limit"
}
```
