set_history_limit
-
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/callSendset_history_limitas the tool name, with the arguments below.- Wraps
LibTmux.TmuxOptions.SetAsyncThe library call this tool makes:src/LibTmux.Mcp/Tools/CapabilityTools.cs:1000.
Arguments
-
The scrollback line limit.
- minimum
-2147483648- maximum
2147483647
-
A session id such as $0, or its name.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"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"}