MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

tool MCP

set_history_limit

set_history_limit( lines: integer, session: string, )

Change tmux state; no client-supplied executable input. Set how many scrollback lines tmux keeps. This is a SESSION option, so it covers every window in the session rather than one pane, and the session must be named because the call can destroy data. Raise it before starting something that prints a lot: no capture can return lines tmux has already discarded. LOWERING it discards the excess from every pane immediately, and the result says how many lines went; raising the limit again does not bring them back.

MCP request method
tools/call Send set_history_limit as the tool name, with the arguments below.
Wraps
LibTmux.TmuxOptions.SetAsyncThe library call this tool makes: src/LibTmux.Mcp/Tools/CapabilityTools.cs:1000.

Arguments

  • lines (integer)

    The scrollback line limit.

    minimum
    -2147483648
    maximum
    2147483647
  • session (string)

    A session id such as $0, or its name.

No other arguments are accepted.

Result

Returns object

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false
title
"Set history limit"

Capability

Toolset
Manage Change tmux structure or presentation.
Process reach
none
tmux effects
change

Every C# tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.

Protocol data

Use the complete advertised contract for validation and client integration.

Input schema
{
"additionalProperties": false,
"properties": {
"lines": {
"description": "The scrollback line limit.",
"maximum": 2147483647,
"minimum": -2147483648,
"type": "integer"
},
"session": {
"description": "A session id such as $0, or its name.",
"type": "string"
}
},
"required": [
"lines",
"session"
],
"type": "object"
}
Output schema
{
"properties": {
"changed": {
"type": "string"
},
"paneId": {
"default": null,
"type": [
"string",
"null"
]
},
"sessionId": {
"default": null,
"type": [
"string",
"null"
]
},
"windowId": {
"default": null,
"type": [
"string",
"null"
]
}
},
"required": [
"changed"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference