MCPconceptAPI Reference

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.

mcp.src.TmuxTools.set_history_limit

#[tool_router(router = contract_router, vis = "pub(super)")] impl TmuxTools #[tool( description = "Set the scrollback history limit for a session or its global default. \ From tmux 3.7 existing panes take it too, and lowering it discards \ their scrollback past the new limit.", title = "Set History Limit", meta = crate::capability_meta!(Teardown, None, [Change, Delete], [TmuxMetadata], true, true, { "session" => [TmuxLookup], "limit" => [TmuxState] }; idempotent) )] pub async fn set_history_limit( &self, Parameters(HistoryLimitArgs { session, limit }): Parameters<HistoryLimitArgs>, ) -> Result<Json<SettingChanged>, ToolError>

Guides#

Pages that discuss set_history_limit.

Esc

Type to search.

Reference previewOpen reference