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.
All C# tools · JSON · Source
Arguments
linesrequired · integer- The scrollback line limit.
sessionrequired · string- A session id such as $0, or its name.
Schemas
The schema defines required fields, nested values, defaults, and validation constraints.
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"}Tool annotations
{ "destructiveHint": true, "idempotentHint": false, "openWorldHint": true, "readOnlyHint": false, "title": "Set history limit"}