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.

MCP request method
tools/call Send set_history_limit as the tool name, with the arguments below.
Wraps
Server.setOption(_:to:scope:)The library call this tool makes: Sources/LibTmuxMCP/CapabilityHandlers.swift:604.

Arguments

  • lines (integer)

    Caller-controlled lines.

    minimum
    0
    maximum
    2000000

No other arguments are accepted.

Result

Returns object

No other properties are accepted.

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 Swift 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": "Caller-controlled lines.",
"maximum": 2000000,
"minimum": 0,
"type": "integer"
}
},
"required": [
"lines"
],
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"lines": {
"type": "integer"
}
},
"required": [
"lines"
],
"type": "object"
}
Esc
Search in

Type to search.

Reference previewOpen reference