# set_history_limit

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

> Replace retained-history bounds with a non-negative integer. Change tmux state; no client-supplied executable input.

MCP is in development

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

Replace retained-history bounds with a non-negative integer. Change tmux state; no client-supplied executable input.

[All C++ tools](https://libtmux.org/en/cxx/latest/mcp/tools/) · [JSON](https://libtmux.org/en/cxx/latest/mcp/tools/set_history_limit.json) · [Source](https://github.com/libtmux/libtmux-cxx/blob/96f367a6fe247e4e5ebddd4a52ca5d5f9d07c0ec/apps/mcp/src/tool_catalog.cpp#L2523)

## Arguments

* `limit` required · integer

  Retained history line limit.

* `session` required · string

  Stable session ID or name.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "limit": {
      "description": "Retained history line limit.",
      "maximum": 10000000,
      "minimum": 0,
      "type": "integer"
    },
    "session": {
      "description": "Stable session ID or name.",
      "maxLength": 512,
      "type": "string"
    }
  },
  "required": [
    "session",
    "limit"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": true,
  "type": "object"
}
```

Tool annotations

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