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, )

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.
Wraps
server.Server.setGlobalOptionThe library call this tool makes: packages/mcp/src/tools/target.ts:436.

Arguments

  • lines (integer)

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

    minimum
    0
    maximum
    2000000

Result

Returns object

  • lines (integer)

    minimum
    -9007199254740991
    maximum
    9007199254740991

No other properties are accepted.

Annotations

Advertised by the server

destructiveHint
true
idempotentHint
false
openWorldHint
true
readOnlyHint
false

Capability

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

Every TypeScript 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
{
"$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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"lines": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
}
},
"required": [
"lines"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference